मांग बढ़ाने में मदद करने वाले कैंपेन में विज्ञापन दिखाने की सुविधा को, पैरंट पार्टनर, विज्ञापन देने वाले व्यक्ति या कंपनी, लाइन आइटम, और विज्ञापन ग्रुप को असाइन की गई टारगेटिंग का इस्तेमाल करके कंट्रोल किया जाता है.
अपने संभावित ग्राहकों तक पहुंचने और कैंपेन की परफ़ॉर्मेंस को बेहतर बनाने के लिए, मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम और विज्ञापन ग्रुप को असाइन की गई टारगेटिंग का इस्तेमाल करें.
तय करें कि टारगेटिंग कहां असाइन करनी है
टारगेटिंग को मांग बढ़ाने में मदद करने वाले लाइन आइटम और विज्ञापन ग्रुप, दोनों को असाइन किया जा सकता है.
अगर आपको टारगेटिंग को उस लाइन आइटम के तहत दिखाए गए सभी विज्ञापनों पर लागू करना है, तो मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम को टारगेटिंग असाइन करें. इसके अलावा, हर विज्ञापन ग्रुप के लिए अलग-अलग टारगेटिंग असाइन करें.
मांग बढ़ाने में मदद करने वाले कैंपेन के संसाधन टाइप के हिसाब से टारगेटिंग की सुविधा
हर संसाधन टाइप के लिए, कुछ खास तरह की टारगेटिंग उपलब्ध होती है.
मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम के लिए, यहां दी गई टारगेटिंग के टाइप इस्तेमाल किए जा सकते हैं:
TARGETING_TYPE_CARRIER_AND_ISPTARGETING_TYPE_DAY_AND_TIMETARGETING_TYPE_DEVICE_MAKE_MODELTARGETING_TYPE_DEVICE_TYPETARGETING_TYPE_GEO_REGIONTARGETING_TYPE_KEYWORDTARGETING_TYPE_LANGUAGETARGETING_TYPE_NEGATIVE_KEYWORD_LISTTARGETING_TYPE_OPERATING_SYSTEMTARGETING_TYPE_POI
मांग बढ़ाने में मदद करने वाले विज्ञापन ग्रुप के लिए, यहां टारगेटिंग के टाइप की सूची दी गई है:
TARGETING_TYPE_AGE_RANGETARGETING_TYPE_APPTARGETING_TYPE_APP_CATEGORYTARGETING_TYPE_AUDIENCE_GROUPTARGETING_TYPE_CATEGORYTARGETING_TYPE_GENDERTARGETING_TYPE_GEO_REGIONTARGETING_TYPE_HOUSEHOLD_INCOMETARGETING_TYPE_KEYWORDTARGETING_TYPE_LANGUAGETARGETING_TYPE_PARENTAL_STATUSTARGETING_TYPE_URLTARGETING_TYPE_YOUTUBE_CHANNELTARGETING_TYPE_YOUTUBE_VIDEO
TARGETING_TYPE_GEO_REGION, TARGETING_TYPE_POI, और TARGETING_TYPE_LANGUAGE की सेटिंग, पैरंट LineItem संसाधन में मौजूद demandGenSettings.geoLanguageTargetingEnabled फ़ील्ड की सेटिंग पर निर्भर करती है. अगर फ़ील्ड की वैल्यू 'सही है' के तौर पर सेट है, तो जगह और भाषा के हिसाब से टारगेटिंग सिर्फ़ पैरंट लाइन आइटम को असाइन की जा सकती है. अगर फ़ील्ड की वैल्यू 'गलत' है, तो इस टारगेटिंग को सिर्फ़ अलग-अलग विज्ञापन ग्रुप को असाइन किया जा सकता है.
टारगेटिंग के लिए उपलब्ध विकल्प ढूंढना
टारगेटिंग को उसके टाइप के हिसाब से पहचाना जाता है. टारगेटिंग के विकल्पों की पहचान करने के लिए, इनमें से कोई एक तरीका इस्तेमाल करें:
- ईनम टाइप
AgeRangeयाExchangeके साथ, काम की ईनम वैल्यू का इस्तेमाल करें. - संबंधित सेवा का इस्तेमाल करके, टारगेट की जा सकने वाली इकाइयां वापस पाएं. जैसे, चैनल या जगह की जानकारी की सूचियां.
listऔरsearchतरीकों का इस्तेमाल करके, टारगेटिंग के किसी टाइप के लिए टारगेटिंग के विकल्प के आईडी वापस पाएं.
मौजूदा टारगेटिंग की जानकारी वापस पाना
मौजूदा टारगेटिंग से यह तय होता है कि किसी लाइन आइटम या विज्ञापन ग्रुप में कौनसी टारगेटिंग जोड़ी जा सकती है.
मांग बढ़ाने में मदद करने वाले कैंपेन के लाइन आइटम और विज्ञापन ग्रुप में, सिर्फ़ इनहेरिट की गई TARGETING_TYPE_KEYWORD टारगेटिंग दिखती है. इसका मतलब है कि विज्ञापन देने वाले व्यक्ति या कंपनी, लाइन आइटम, और विज्ञापन ग्रुप के लिए टारगेटिंग की जानकारी वापस लानी होगी. इससे, विज्ञापन दिखाने पर असर डालने वाली सभी टारगेटिंग का पूरा हिसाब मिल पाएगा.
बड़ी सूची के अनुरोधों का इस्तेमाल करके, टारगेटिंग के सभी टाइप के लिए मौजूदा टारगेटिंग वापस पाएं.
मौजूदा पार्टनर और विज्ञापन देने वाले व्यक्ति या कंपनी की टारगेटिंग की जानकारी वापस पाना
विज्ञापन देने वाले किसी व्यक्ति या कंपनी के लिए, मौजूदा टारगेटिंग पाने का तरीका यहां बताया गया है. इसमें इनहेरिट की गई पार्टनर टारगेटिंग भी शामिल है:
Python
# Provide the ID of the advertiser. advertiser_id = advertiser-id # Create the page token variable. next_page_token = "" while True: # Execute the list request. response = ( service.advertisers() .listAssignedTargetingOptions( advertiserId=advertiser_id, pageToken=next_page_token, ) .execute() ) # If response is not empty, display the retrieved assigned targeting # options. if response: for assigned_targeting_option in response.get( "assignedTargetingOptions", [] ): ato_name = assigned_targeting_option.get( "name", None ) if ato_name: print(f"Assigned Targeting Option {ato_name}.") else: print(f"No targeting is currently assigned to {advertiser_id}.") sys.exit(1) # Update the next page token. # Break out of loop if there is no next page. if "nextPageToken" in response: next_page_token = response["nextPageToken"] else: break
मौजूदा लाइन आइटम टारगेटिंग वापस पाना
किसी लाइन आइटम को सीधे तौर पर असाइन की गई मौजूदा टारगेटिंग पाने का तरीका यहां बताया गया है:
Python
# Provide the ID of the parent advertiser. advertiser_id = advertiser-id # Provide the ID of the Demand Gen line item. line_item_id = line-item-id # Create the page token variable. next_page_token = "" while True: # Execute the list request. response = ( service.advertisers() .lineItems() .bulkListAssignedTargetingOptions( advertiserId=advertiser_id, lineItemIds=[line_item_id], pageToken=next_page_token, ) .execute() ) # If response is not empty, display the retrieved assigned targeting # options line items. if response: for assigned_option in response.get( "lineItemAssignedTargetingOptions", [] ): ato_name = assigned_option.get("assignedTargetingOption", {}).get( "name", None ) if ato_name: print(f"Assigned Targeting Option {ato_name} found.") else: print(f"No targeting is currently assigned to {line_item_id}.") sys.exit(1) # Update the next page token. # Break out of loop if there is no next page. if "nextPageToken" in response: next_page_token = response["nextPageToken"] else: break
मौजूदा विज्ञापन ग्रुप की टारगेटिंग फिर से पाना
यहां किसी विज्ञापन ग्रुप को सीधे तौर पर मौजूदा टारगेटिंग असाइन करने का तरीका बताया गया है:
Python
# Provide the ID of the parent advertiser. advertiser_id = advertiser-id # Provide the ID of the ad group. ad_group_id = ad-group-id # Create the page token variable. next_page_token = "" while True: # Execute the list request. response = ( service.advertisers() .adGroups() .bulkListAssignedTargetingOptions( advertiserId=advertiser_id, adGroupIds=[ad_group_id], pageToken=next_page_token, ) .execute() ) # If response is not empty, display the retrieved assigned targeting # options line items. if response: for assigned_option in response.get( "adGroupAssignedTargetingOptions", [] ): ato_name = assigned_option.get("assignedTargetingOption", {}).get( "name", None ) if ato_name: print(f"Assigned Targeting Option {ato_name} found.") else: print(f"No targeting is currently assigned to {ad_group_id}.") sys.exit(1) # Update the next page token. # Break out of loop if there is no next page. if "nextPageToken" in response: next_page_token = response["nextPageToken"] else: break
संसाधनों को टारगेटिंग असाइन करना
लाइन आइटम और विज्ञापन ग्रुप की टारगेटिंग को अपडेट करने के लिए, आपको अलग-अलग अनुरोध करने होंगे.
लाइन आइटम टारगेटिंग असाइन करना
यहां बताया गया है कि किसी लाइन आइटम में, टारगेटिंग का यह लॉजिक कैसे जोड़ा जाता है:
- सिर्फ़ कंप्यूटर पर विज्ञापन दिखाए जाते हैं.
"आइसक्रीम" कीवर्ड से मिलते-जुलते कॉन्टेंट के साथ दिखाए जाने वाले विज्ञापन इन्वेंट्री पर बिड न करें.
Python
# Provide the ID of the parent advertiser. advertiser_id = advertiser-id # Provide the ID of the line item. line_item_id = line-item-id # Build the "ice cream" negative keyword assigned targeting option. keyword_assigned_targeting_option = { "keywordDetails": {"keyword": "ice cream", "negative": True} } # Build the delete request for device type targeting to remove all device # types to only target computers. device_type_delete_request = { "targetingType": "TARGETING_TYPE_DEVICE_TYPE", "assignedTargetingOptionIds": [ "DEVICE_TYPE_SMART_PHONE", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_TABLET" ], } # Create a bulk edit request. bulk_edit_targeting_request = { "lineItemIds": [line_item_id], "createRequests": [ { "targetingType": "TARGETING_TYPE_KEYWORD", "assignedTargetingOptions": [ keyword_assigned_targeting_option ], } ], "deleteRequests": [ device_type_delete_request ] } # Build and execute request. response = ( service.advertisers() .lineItems() .bulkEditAssignedTargetingOptions( advertiserId=advertiser_id, body=bulk_edit_targeting_request ) .execute() ) # Print the request results. if ( "updatedLineItemIds" in response and len(response["updatedLineItemIds"]) != 0 ): print( f'Targeting configurations for {response["updatedLineItemIds"][0]} ' "were successfully updated." ) elif ( "failedLineItemIds" in response and len(response["failedLineItemIds"]) != 0 ): print( f'Targeting configurations for {response["failedLineItemIds"][0]} ' "failed to update." ) if "errors" in response and len(response["errors"]) != 0: print("The failed updates were caused by the following errors:") for error in response["errors"]: print(f'Code {error["code"]}: {error["message"]}') else: print("No successful or failed updates were reported.")
विज्ञापन ग्रुप के लिए टारगेटिंग असाइन करना
किसी विज्ञापन ग्रुप में, टारगेटिंग का यह लॉजिक जोड़ने का तरीका यहां बताया गया है:
- सिर्फ़ माता-पिता को दिखाए जाते हैं.
दिए गए YouTube चैनल पर विज्ञापन न दिखाएं.
Python
# Provide the ID of the parent advertiser. advertiser_id = advertiser-id # Provide the ID of the ad group. ad_group_id = ad-group-id # Provide the YouTube channel ID to negatively target. yt_channel_id = youtube-channel-id # Build the assigned targeting option to negatively target the given YouTube # channel. youtube_channel_assigned_targeting_options = [ { "youtubeChannelDetails": { "channelId": yt_channel_id, "negative": True } }, ] # Build the assigned targeting options to target only parents. parental_status_assigned_targeting_options = [ { "parentalStatusDetails": { "parentalStatus": "PARENTAL_STATUS_PARENT" } }, ] # Create a bulk edit request. bulk_edit_targeting_request = { "adGroupIds": [ad_group_id], "createRequests": [ { "targetingType": "TARGETING_TYPE_YOUTUBE_CHANNEL", "assignedTargetingOptions": ( youtube_channel_assigned_targeting_options ) }, { "targetingType": "TARGETING_TYPE_PARENTAL_STATUS", "assignedTargetingOptions": ( parental_status_assigned_targeting_options ), } ] } # Build and execute request. response = ( service.advertisers() .adGroups() .bulkEditAssignedTargetingOptions( advertiserId=advertiser_id, body=bulk_edit_targeting_request ) .execute() ) # Print the request results. if ( "updatedAdGroupIds" in response and len(response["updatedAdGroupIds"]) != 0 ): print( f'Targeting configurations for {response["updatedAdGroupIds"][0]} ' "were successfully updated." ) elif ( "failedAdGroupIds" in response and len(response["failedAdGroupIds"]) != 0 ): print( f'Targeting configurations for {response["failedAdGroupIds"][0]} ' "failed to update." ) if "errors" in response and len(response["errors"]) != 0: print("The failed updates were caused by the following errors:") for error in response["errors"]: print(f'Code {error["code"]}: {error["message"]}') else: print("No successful or failed updates were reported.")