टारगेटिंग

संसाधन टारगेटिंग का मैनेजमेंट, Display &Video 360 की मुख्य सुविधा है Video 360 API. टारगेटिंग को कई तरह के रिसॉर्स को असाइन किया जा सकता है और अन्य संसाधन और आईडी स्पेस. यह पेज, ध्यान देने लायक और ज़रूरी सीमाओं के बारे में बताता है Google Display &Video 360 के ज़रिए दिखाए जाने वाले विज्ञापनों और Video 360 API की असाइन की गई टारगेटिंग विकल्प से जुड़ी सेवाएं.

टारगेटिंग इनहेरिटेंस का इस्तेमाल करें

कुछ संसाधनों को असाइन की गई टारगेटिंग, उनके बच्चे को मिल सकती है संसाधन. चाइल्ड रिसॉर्स से इनहेरिट किए गए टारगेटिंग विकल्प फिर से पाने लायक हैं, लेकिन चाइल्ड रिसॉर्स लेवल पर बदलाव नहीं किया जा सकता. इससे ब्रैंड सुरक्षा सेटिंग चालू होती हैं और किसी पार्टनर या विज्ञापन देने वाले व्यक्ति या कंपनी की ओर से पूरी तरह लागू की जाने वाली अन्य टारगेटिंग.

इनहेरिटेंस का पाथ नीचे दिए गए डायग्राम में देखा जा सकता है:

टारगेटिंग इनहेरिटेंस का डायग्राम

जैसा कि डायग्राम में बताया गया है, कुछ टारगेटिंग लेवल सिर्फ़ टारगेटिंग के टाइप. इसका मतलब है कि टारगेटिंग के कुछ विकल्पों को 'ज़्यादा' पर सेट नहीं किया जा सकता लेवल और इनहेरिट किए गए हैं. हालांकि, इन्हें कम लेवल पर सेट करना ज़रूरी है.

YouTube में वंशानुक्रम और पार्टनर के संसाधन

लक्ष्यीकरण इनहेरिटेंस YouTube और इसमें पार्टनर के संसाधन डिसप्ले और Video 360 API. विज्ञापन ग्रुप से इनहेरिट की गई टारगेटिंग AdGroup स्तर और YouTube टारगेटिंग पर फिर से पाने लायक पैरंट रिसॉर्स को असाइन किए गए, चाइल्ड रिसॉर्स से नहीं लिए जाएंगे.

किसी विज्ञापन ग्रुप की सभी फ़ंक्शनल टारगेटिंग सेटिंग फिर से पाने के लिए, को विज्ञापन ग्रुप के लिए असाइन किए गए टारगेटिंग विकल्पों को फिर से हासिल करना चाहिए, पैरंट लाइन आइटम, और पैरंट विज्ञापन देने वाला.

लाइन आइटम बनाते समय असाइन की गई टारगेटिंग का ध्यान रखें

इनहेरिट किए गए टारगेटिंग विकल्पों के अलावा, ज़्यादातर टारगेटिंग सिर्फ़ असाइन की जा सकती हैं के बाद लाइन आइटम बनाया जा सकता है. हालांकि, कुछ टारगेटिंग टाइप में ये लाइन आइटम बनाने के दौरान, लाइन आइटम को असाइन की गई वैल्यू का डिफ़ॉल्ट सबसेट. वे टारगेटिंग के टाइप हैं:

मौजूदा बनाने या असाइन न किए गए टारगेटिंग विकल्पों को हटाने की कोशिश करना कोई गड़बड़ी दिखाता है, इसलिए हमारा सुझाव है कि आप टारगेटिंग (विज्ञापन के लिए सही दर्शक चुनना) सुइट के बारे में पूरी जानकारी रखें जो आपके लाइन आइटम बनने के बाद असाइन की जाती हैं. अगर आपको टारगेटिंग के अलग-अलग टाइप में किसी लाइन आइटम को असाइन की गई टारगेटिंग, इसका इस्तेमाल करें advertisers.lineItems.bulkListAssignedTargetingOptions.

इसके अलावा, कुछ सेटिंग डिफ़ॉल्ट रूप से तब सेट होती हैं, जब उनमें कोई टारगेटिंग विकल्प नहीं होता प्रकार को संसाधन को असाइन किया जाता है. उदाहरण के लिए, अगर किसी संसाधन में TARGETING_TYPE_AUTHORIZED_SELLER_STATUS लक्ष्यीकरण विकल्प परिभाषित है, जिसका मतलब है कि वह "Authorized Direct सेलर और रीसेलर" स्थिति.

अपने-आप होने वाली "डिफ़ॉल्ट टारगेटिंग" की उम्मीद न करें

इन-डिसप्ले & Video 360 में, कैंपेन या इंसर्शन ऑर्डर के लेवल पर सेट की गई टारगेटिंग उनके चाइल्ड लाइन आइटम में तुरंत नहीं भेजे जाते. इस लक्ष्यीकरण को इसके नाम से जाना जाता है "डिफ़ॉल्ट टारगेटिंग" और इसका इस्तेमाल टारगेटिंग टेंप्लेट के तौर पर किया जाता है जो बाद में यूज़र इंटरफ़ेस (यूआई) में बनाए गए लाइन आइटम पर लागू होता है.

Display &Video 360 के ज़रिए Video 360 API, डिफ़ॉल्ट टारगेटिंग नए वर्शन पर अपने-आप लागू नहीं होती बनाए गए लाइन आइटम. बुनियादी लाइन आइटम बनाने की सुविधा किसी भी कैंपेन में कॉपी नहीं होती है या इंसर्शन ऑर्डर लेवल टारगेटिंग का इस्तेमाल किया जा सकता है. इस मामले में, मनचाहा टारगेटिंग असाइन किए गए टारगेटिंग विकल्प के ज़रिए लाइन आइटम पर अलग से लागू किया जाता है बनाएं या एक साथ कई बदलाव करें.

खास तरीकों को अपवाद माना जा सकता है. उदाहरण के लिए, इसके ज़रिए बनाए गए लाइन आइटम advertisers.lineItems.generateDefault कॉपी उसके पैरंट इंसर्शन ऑर्डर की सेटिंग के साथ-साथ, असाइन की गई टारगेटिंग भी शामिल हो सकती है. इसी तरह, डुप्लीकेट के ज़रिए बनाए गए लाइन आइटम को टारगेटिंग (विज्ञापन के लिए सही दर्शक चुनना) ओरिजनल लाइन आइटम जैसी ही है.

YouTube और पार्टनर टारगेटिंग में बदलाव नहीं किया जा सकता

खास तौर पर, YouTube और पार्टनर कैंपेन, इसका इस्तेमाल करके अपडेट नहीं किए जा सकते Display & Video 360 API.

YouTube और पार्टनर टारगेटिंग में वे सभी टारगेटिंग शामिल हैं जो सीधे तौर पर इन्हें असाइन की गई हैं YouTube और पार्टनर लाइन आइटम और विज्ञापन ग्रुप के साथ-साथ नीचे दिए गए टारगेटिंग टाइप का कोई भी टारगेटिंग:

  • TARGETING_TYPE_SESSION_POSITION
  • TARGETING_TYPE_YOUTUBE_CHANNEL
  • TARGETING_TYPE_YOUTUBE_VIDEO

इस लक्ष्यीकरण को प्रदर्शन और सीधे वीडियो 360 यूज़र इंटरफ़ेस (यूआई) या इसके ज़रिए स्ट्रक्चर्ड डेटा फ़ाइल अपलोड करना.

एक ही विकल्प से ऑडियंस टारगेटिंग असाइन करें

टारगेटिंग के ज़्यादातर टाइप के लिए, टारगेटिंग के विकल्प अलग-अलग असाइन किए जाते हैं. ऑडियंस ग्रुप टारगेटिंग इस मॉड्यूलर कन्वेंशन का पालन नहीं करती, बल्कि इसे असाइन किया गया है कॉन्फ़िगर किया जा सकता है. ऑडियंस ग्रुप टारगेटिंग की जानकारी वाला ऑब्जेक्ट, जिसमें विज्ञापन दिखाते समय शामिल करने और बाहर रखने के लिए ऑडियंस के आईडी. कॉन्टेंट बनाने assignedTargetingOptionId, ऑडियंस ग्रुप के इस विकल्प के लिए, असाइन होने के बाद, यह हमेशा "audienceGroup" होता है.

इस डिज़ाइन का मतलब है कि ऑडियंस ग्रुप टारगेटिंग में कोई भी बदलाव ऐसा करना होगा असाइन किए गए मौजूदा ऑडियंस ग्रुप को मिटाना टारगेटिंग का विकल्प चुनने के बाद, नया ऑडियंस ग्रुप बनाना टारगेटिंग विकल्प चुना जा सकता है. ऐसा एक ही अनुरोध में किया जा सकता है इसका उपयोग कर रहा है advertisers.lineItems.bulkEditAssignedTargetingOptions.

यहां ऑडियंस टारगेटिंग को पॉज़िटिव तौर पर अपडेट करने का तरीका बताया गया है Google की अन्य ऑडियंस को टारगेट करें:

Java

long advertiserId = advertiser-id;
long lineItemId = line-item-id
List<Long> addedGoogleAudienceIds =
    Arrays.asList(google-audience-id-to-add,...);

// Build Google audience targeting settings objects to add to audience
// targeting.
ArrayList<GoogleAudienceTargetingSetting> newGoogleAudienceSettings =
    new ArrayList<GoogleAudienceTargetingSetting>();

// Convert list of Google Audience IDs into list of settings.
for (Long googleAudienceId : addedGoogleAudienceIds) {
  newGoogleAudienceSettings.add(new GoogleAudienceTargetingSetting()
      .setGoogleAudienceId(googleAudienceId));
}

// Create relevant bulk edit request objects.
BulkEditLineItemAssignedTargetingOptionsRequest requestContent =
    new BulkEditLineItemAssignedTargetingOptionsRequest();
AudienceGroupAssignedTargetingOptionDetails updatedAudienceGroupDetails;
ArrayList<DeleteAssignedTargetingOptionsRequest> audienceGroupDeleteRequests =
    new ArrayList<DeleteAssignedTargetingOptionsRequest>();

try {
  // Retrieve existing audience group targeting.
  AssignedTargetingOption existingAudienceGroupTargetingOption =
      service
          .advertisers()
          .lineItems()
          .targetingTypes()
          .assignedTargetingOptions()
          .get(
              advertiserId,
              lineItemId,
              "TARGETING_TYPE_AUDIENCE_GROUP",
              "audienceGroup"
          ).execute();

  // Extract existing audience group targeting details.
  updatedAudienceGroupDetails =
      existingAudienceGroupTargetingOption.getAudienceGroupDetails();

  // Build and add delete request for existing audience group targeting.
  ArrayList<String> deleteAudienceGroupAssignedTargetingIds =
      new ArrayList<String>();
  deleteAudienceGroupAssignedTargetingIds.add("audienceGroup");

  audienceGroupDeleteRequests
      .add(new DeleteAssignedTargetingOptionsRequest()
          .setTargetingType("TARGETING_TYPE_AUDIENCE_GROUP")
          .setAssignedTargetingOptionIds(
              deleteAudienceGroupAssignedTargetingIds
          )
      );
}
catch (GoogleJsonResponseException e) {
  updatedAudienceGroupDetails =
      new AudienceGroupAssignedTargetingOptionDetails();
}

// Set delete requests in edit request.
requestContent.setDeleteRequests(audienceGroupDeleteRequests);

// Construct new group of Google Audiences to include in targeting.
GoogleAudienceGroup updatedIncludedGoogleAudienceGroup =
    updatedAudienceGroupDetails.getIncludedGoogleAudienceGroup();
if (updatedIncludedGoogleAudienceGroup != null) {
  List<GoogleAudienceTargetingSetting> updatedGoogleAudienceSettings =
      updatedIncludedGoogleAudienceGroup.getSettings();
  updatedGoogleAudienceSettings.addAll(newGoogleAudienceSettings);
  updatedIncludedGoogleAudienceGroup
      .setSettings(updatedGoogleAudienceSettings);
} else {
  updatedIncludedGoogleAudienceGroup = new GoogleAudienceGroup();
  updatedIncludedGoogleAudienceGroup.setSettings(newGoogleAudienceSettings);
}

// Add new Google Audience group to audience group targeting details.
updatedAudienceGroupDetails
    .setIncludedGoogleAudienceGroup(updatedIncludedGoogleAudienceGroup);

// Create new targeting option to assign.
AssignedTargetingOption newAudienceGroupTargeting =
    new AssignedTargetingOption();
newAudienceGroupTargeting
    .setAudienceGroupDetails(updatedAudienceGroupDetails);

// Build audience group targeting create request and add to list of create
// requests.
ArrayList<AssignedTargetingOption> createAudienceGroupAssignedTargetingOptions =
    new ArrayList<AssignedTargetingOption>();
createAudienceGroupAssignedTargetingOptions.add(newAudienceGroupTargeting);
ArrayList<CreateAssignedTargetingOptionsRequest> targetingCreateRequests =
    new ArrayList<CreateAssignedTargetingOptionsRequest>();
targetingCreateRequests.add(new CreateAssignedTargetingOptionsRequest()
    .setTargetingType("TARGETING_TYPE_AUDIENCE_GROUP")
    .setAssignedTargetingOptions(
        createAudienceGroupAssignedTargetingOptions
    )
);

// Set create requests in edit request.
requestContent.setCreateRequests(targetingCreateRequests);

// Configure and execute the bulk list request.
BulkEditLineItemAssignedTargetingOptionsResponse response =
    service.advertisers().lineItems()
        .bulkEditLineItemAssignedTargetingOptions(
            advertiserId,
            lineItemId,
            requestContent).execute();

Python

advertiser_id = advertiser-id
line_item_id = line-item-id
added_google_audiences = [google-audience-id-to-add,...]

# Build Google audience targeting settings objects to create.
new_google_audience_targeting_settings = []
for google_audience_id in added_google_audiences:
 new_google_audience_targeting_settings.append(
     {'googleAudienceId': google_audience_id}
 )

# Retrieve any existing line item audience targeting.
retrieved_audience_targeting = service.advertisers().lineItems(
).targetingTypes().assignedTargetingOptions().get(
   advertiserId=advertiser_id,
   lineItemId=line_item_id,
   targetingType="TARGETING_TYPE_AUDIENCE_GROUP",
   assignedTargetingOptionId="audienceGroup"
).execute()

updated_audience_group_details = {}

# Copy over any existing audience targeting.
if 'audienceGroupDetails' in retrieved_audience_targeting:
 updated_audience_group_details = retrieved_audience_targeting[
     'audienceGroupDetails']

# Append the new Google audience IDs to any existing positive Google
# audience targeting.
if 'includedGoogleAudienceGroup' in updated_audience_group_details:
 updated_audience_group_details[
     'includedGoogleAudienceGroup']['settings'].extend(
         new_google_audience_targeting_settings)
else:
 updated_audience_group_details['includedGoogleAudienceGroup'] = {
     'settings': new_google_audience_targeting_settings
 }

# Build bulk edit request.
bulk_edit_request = {
   'deleteRequests': [
       {
         'targetingType': "TARGETING_TYPE_AUDIENCE_GROUP",
         'assignedTargetingOptionIds': [
           "audienceGroup"
         ]
       }
   ],
   'createRequests': [
       {
           'targetingType': "TARGETING_TYPE_AUDIENCE_GROUP",
           'assignedTargetingOptions': [
               {'audienceGroupDetails': updated_audience_group_details}
           ]
       }
   ]
}

# Update the audience targeting
updated_audience_targeting = service.advertisers().lineItems(
).bulkEditLineItemAssignedTargetingOptions(
   advertiserId=advertiser_id,
   lineItemId=line_item_id,
   body=bulk_edit_request
).execute()

PHP

$advertiserId = advertiser-id;
$lineItemId = line-item-id;
$addedGoogleAudienceIds = array(google-audience-id-to-add,...);

// Convert list of Google Audience IDs into list of Google audience
// settings.
$newGoogleAudienceSettings = array();
foreach ($addedGoogleAudienceIds as $googleAudienceId) {
    $newSetting =
        new Google_Service_DisplayVideo_GoogleAudienceTargetingSetting();
    $newSetting->setGoogleAudienceId($googleAudienceId);
    $newGoogleAudienceSettings[] = $newSetting;
}

// Create a bulk edit request.
$requestBody =
    new Google_Service_DisplayVideo_BulkEditLineItemAssignedTargetingOptionsRequest();

$audienceGroupDeleteRequests = array();

try {
    // Retrieve existing audience group targeting.
    $existingAudienceGroupTargetingOption = $this
        ->service
        ->advertisers_lineItems_targetingTypes_assignedTargetingOptions
        ->get(
            $advertiserId,
            $lineItemId,
            'TARGETING_TYPE_AUDIENCE_GROUP',
            'audienceGroup'
        );

    // Extract existing audience group targeting details.
    $updatedAudienceGroupDetails =
        $existingAudienceGroupTargetingOption
            ->getAudienceGroupDetails();

    // Build and add delete request for existing audience group
    // targeting.
    $deleteAudienceGroupAssignedTargetingIds = array();
    $deleteAudienceGroupAssignedTargetingIds[] = "audienceGroup";

    $audienceGroupDeleteRequest =
        new Google_Service_DisplayVideo_DeleteAssignedTargetingOptionsRequest();
    $audienceGroupDeleteRequest
        ->setTargetingType('TARGETING_TYPE_AUDIENCE_GROUP');
    $audienceGroupDeleteRequest
        ->setAssignedTargetingOptionIds(
            $deleteAudienceGroupAssignedTargetingIds
        );
    $audienceGroupDeleteRequests[] = $audienceGroupDeleteRequest;
} catch (\Exception $e) {
    $updatedAudienceGroupDetails =
        new Google_Service_DisplayVideo_AudienceGroupAssignedTargetingOptionDetails();
}

// Set delete requests in edit request.
$requestBody->setDeleteRequests($audienceGroupDeleteRequests);

// Construct new group of Google audiences to include in targeting.
$updatedIncludedGoogleAudienceGroup = $updatedAudienceGroupDetails
    ->getIncludedGoogleAudienceGroup();

if (!empty($updatedIncludedGoogleAudienceGroup)) {
    // Get existing settings.
    $updatedGoogleAudienceSettings =
    $updatedIncludedGoogleAudienceGroup->getSettings();

    // Add new Google audiences to existing list.
    $updatedGoogleAudienceSettings = array_merge(
        $updatedGoogleAudienceSettings,
        $newGoogleAudienceSettings
    );

    // Set updated Google audience list.
    $updatedIncludedGoogleAudienceGroup
        ->setSettings($updatedGoogleAudienceSettings);
} else {
    // Create new Google audience group.
    $updatedIncludedGoogleAudienceGroup =
        new Google_Service_DisplayVideo_GoogleAudienceGroup();

    // Set list of new Google audiences for targeting.
    $updatedIncludedGoogleAudienceGroup
        ->setSettings($newGoogleAudienceSettings);
}

// Add new Google Audience group to audience group targeting details.
$updatedAudienceGroupDetails
    ->setIncludedGoogleAudienceGroup(
        $updatedIncludedGoogleAudienceGroup
    );

// Create new targeting option to assign.
$newAudienceGroupTargeting =
    new Google_Service_DisplayVideo_AssignedTargetingOption();
$newAudienceGroupTargeting
    ->setAudienceGroupDetails($updatedAudienceGroupDetails);

// Build audience group targeting create request and add to list of
// create requests.
$createAudienceGroupAssignedTargetingOptions = array();
$createAudienceGroupAssignedTargetingOptions[] =
    $newAudienceGroupTargeting;
$createAudienceGroupTargetingRequest =
    new Google_Service_DisplayVideo_CreateAssignedTargetingOptionsRequest();
$createAudienceGroupTargetingRequest->setTargetingType(
    "TARGETING_TYPE_AUDIENCE_GROUP"
);
$createAudienceGroupTargetingRequest->setAssignedTargetingOptions(
    $createAudienceGroupAssignedTargetingOptions
);
$createRequests[] = $createAudienceGroupTargetingRequest;

// Set create requests in edit request.
$requestBody->setCreateRequests($createRequests);

// Call the API, editing the assigned targeting options for the
// identified line item.
$response = $this
    ->service
    ->advertisers_lineItems
    ->bulkEditLineItemAssignedTargetingOptions(
        $advertiserId,
        $lineItemId,
        $requestBody
    );

टारगेटिंग (विज्ञापन के लिए सही दर्शक चुनना) विकल्पों को बंद करने के लिए तैयार रहें

टारगेटिंग (विज्ञापन के लिए सही दर्शक चुनना) विकल्प स्थिर नहीं होते हैं और हो सकता है कि एक छोटी संख्या का इस्तेमाल समय से रोक दिया जाए समय तक. लक्ष्यीकरण विकल्प बहिष्कृत कर दिए जाने के बाद, किसी लाइन आइटम के विज्ञापन पर असर नहीं डालते पेश किया जा रहा है. बंद होने के बाद, इन विकल्पों को मौजूदा लाइन से हटा दिया जाएगा जो आइटम और अनुरोध इन विकल्पों को फिर से पाने या असाइन करने की कोशिश करते हैं में होना चाहिए.

इन गड़बड़ियों से बचने के लिए, हमारा सुझाव है कि आप स्टोर पेज की नियमित तौर पर जांच करें, ताकि टारगेटिंग के विकल्प आईडी. कोटा बचाने के लिए, हमारा सुझाव है कि आप अपने खाते को नियमित तौर पर इस्तेमाल होने वाले आईडी. हालांकि, आईडी सेव करने का मतलब है कि आपको ध्यान दें कि लक्ष्यीकरण विकल्प का बहिष्कार किया गया है. इस कारण से, आपको इन कामों के लिए नियमित रूप से targetingOptions.targetingTypes.get का इस्तेमाल करें सभी स्टोर किए गए टारगेटिंग विकल्प आईडी को फिर से पाएं, ताकि यह पुष्टि की जा सके कि वे अब भी हैं Display &द्वारा समर्थित वीडियो 360.

अहम जानकारी के लिए, पहचान फ़ाइल को बंद करने का एलान पेज देखें पिछली और आने वाली सुविधाओं के बंद होने के बारे में जानकारी.

एक ही लाइन आइटम को अपडेट करने के लिए एक साथ अनुरोध न करें

किसी एक लाइन आइटम की सेटिंग या असाइन की गई टारगेटिंग को अपडेट करने की कोशिश करना एक साथ कई अनुरोधों का इस्तेमाल करने पर गड़बड़ी दिखेगी. लागू होने वाले अनुरोध शामिल करें:

अगर आपको किसी एक टारगेटिंग के लिए, असाइन किए गए कई टारगेटिंग विकल्पों को जोड़ना या हटाना है तो आपको एक ही समय में एक पंक्ति आइटम advertisers.lineItems.bulkEditAssignedTargetingOptions अनुरोध. अगर आपको किसी लाइन आइटम की सेटिंग और टारगेटिंग (विज्ञापन के लिए सही दर्शक चुनना) को अपडेट करना है, तो सूची patch या bulkUpdate अनुरोध और उससे जुड़े काम के टारगेटिंग अनुरोध से यह पक्का करने के लिए कि दूसरा अनुरोध पहले जवाब दिखाता है.