একটি ডিমান্ড জেন বিজ্ঞাপন গ্রুপ তৈরি করুন

একটি ডিমান্ড জেন অ্যাড গ্রুপ এর অধীনে থাকা বিজ্ঞাপনগুলোর জন্য সুনির্দিষ্ট বিডিং এবং সার্ভিং নিয়ন্ত্রণ প্রদান করে। এটি AdGroup রিসোর্সে বিড স্ট্র্যাটেজি, ইনভেন্টরি সেটিংস এবং টার্গেটিং-এর মাধ্যমে কনফিগার করা হয়।

অ্যাড গ্রুপের অ্যাডস নামক চাইল্ড রিসোর্স থাকে, যেগুলো হলো নিলাম জেতার পর পরিবেশিত কনফিগার করা ক্রিয়েটিভ।

কনফিগারেশন নির্বাচন করুন

ডিমান্ড জেন অ্যাড গ্রুপ তৈরি করার আগে, বিজ্ঞাপন পরিবেশনের উপর আরও নিয়ন্ত্রণ সক্ষম করতে এই ঐচ্ছিক সেটিংসগুলো বিবেচনা করুন:

  • টার্গেট সিপিএ, টার্গেট সিপিসি, বা টার্গেট আরওএএস বিডিং স্ট্র্যাটেজি ব্যবহার করার সময়, প্যারেন্ট লাইন আইটেমের তুলনায় অ্যাড গ্রুপের জন্য একটি ভিন্ন টার্গেট ভ্যালু সেট করতে bidStrategy DemandGenBiddingStrategy দিয়ে কনফিগার করা যেতে পারে।
  • adGroupInventoryControl সেট করে সেই ইনভেন্টরিগুলো নির্বাচন করা যায়, যেগুলোর উপর অ্যাড গ্রুপটি বিড করবে এবং বিজ্ঞাপনগুলো পরিবেশন করা হবে।
  • targetingExpansion আপনাকে সেইসব অ্যাড গ্রুপের জন্য অপটিমাইজড টার্গেটিং চালু করতে দেয়, যেগুলো অডিয়েন্স টার্গেটিং ব্যবহার করছে। অপটিমাইজড টার্গেটিং আপনার সেট করা ডেমোগ্রাফিক টার্গেটিংয়ের বাইরেও বিজ্ঞাপন পরিবেশন প্রসারিত করে। আপনি ডেমোগ্রাফিক এক্সপ্যানশন বাদ দিয়ে এটি সীমাবদ্ধ করতে পারেন।

ডিমান্ড জেন অ্যাড গ্রুপ তৈরি করার সময়, আপনাকে অবশ্যই adGroupFormat ফিল্ডটি AD_GROUP_FORMAT_DEMAND_GEN এ সেট করতে হবে।

একটি বিজ্ঞাপন গ্রুপ তৈরি করুন

নিম্নলিখিত সেটিংস ব্যবহার করে কীভাবে একটি ডিমান্ড জেন অ্যাড গ্রুপ তৈরি করবেন তা এখানে দেওয়া হলো:

  • একটি বিড স্ট্র্যাটেজি যা প্রতি কনভার্সনে গড়ে ১২ ডলার খরচ নিশ্চিত করে এবং এর প্যারেন্ট লাইন আইটেম থেকে একটি টার্গেট সিপিএ বিড স্ট্র্যাটেজি গ্রহণ করে।
  • শুধুমাত্র ইউটিউব ইন-স্ট্রিম এবং শর্টস ইনভেন্টরির উপর বিড করা হবে।

জাভা

// Provide the ID of the parent advertiser.
long advertiserId = advertiser-id;

// Provide the ID of the parent line item.
long lineItemId = line-item-id;

// Provide the display name of the ad group.
String displayName = display-name;

// Create the ad group structure.
AdGroup adGroup =
    new AdGroup()
        .setLineItemId(lineItemId)
        .setDisplayName(displayName)
        .setAdGroupFormat("AD_GROUP_FORMAT_DEMAND_GEN")
        .setEntityStatus("ENTITY_STATUS_PAUSED");

// Create and set the bidding strategy.
BiddingStrategy biddingStrategy =
    new BiddingStrategy()
        .setDemandGenBid(new DemandGenBiddingStrategy().setValue(12000000L));
adGroup.setBidStrategy(biddingStrategy);

// Create and set inventory controls.
AdGroupInventoryControl inventoryControl = new AdGroupInventoryControl();
SelectedInventories selectedInventories =
    new SelectedInventories()
        .setAllowYoutubeStream(true)
        .setAllowYoutubeShorts(true);
inventoryControl.setSelectedInventories(selectedInventories);
adGroup.setAdGroupInventoryControl(inventoryControl);

// Configure the create request.
AdGroups.Create request =
    service.advertisers().adGroups().create(advertiserId, adGroup);

// Create the ad group.
AdGroup response = request.execute();

// Display the new ad group.
System.out.printf("Demand Gen ad group %s was created.", response.getName());

পাইথন

# Provide the ID of the parent advertiser.
advertiser_id = advertiser-id

# Provide the ID of the parent line item.
line_item_id = line-item-id

# Provide the display name of the ad group.
display_name = display-name

# Create an ad group object with example values.
ad_group_obj = {
    "lineItemId": line_item_id,
    "displayName": display_name,
    "entityStatus": "ENTITY_STATUS_PAUSED",
    "adGroupFormat": "AD_GROUP_FORMAT_DEMAND_GEN",
    "bidStrategy": {
        "demandGenBid": {
            "value": "12000000"
        }
    },
    "adGroupInventoryControl": {
        "selectedInventories": {
            "allowYoutubeStream": True,
            "allowYoutubeShorts": True,
        }
    }
}

# Build and execute request.
response = (
    service.advertisers()
    .adGroups()
    .create(advertiserId=advertiser_id, body=ad_group_obj)
    .execute()
)

# Display the new ad group.
print(f"Demand Gen ad group {response['name']} was created.")

পিএইচপি

// Provide the ID of the parent advertiser.
$advertiserId = advertiser-id;

// Provide the ID of the parent line item.
$lineItemId = line-item-id;

// Provide the display name of the ad group.
$displayName = display-name;

// Create the Demand Gen ad group structure.
$adGroup = new Google_Service_DisplayVideo_AdGroup();
$adGroup->setLineItemId($lineItemId);
$adGroup->setDisplayName($displayName);
$adGroup->setAdGroupFormat('AD_GROUP_FORMAT_DEMAND_GEN');
$adGroup->setEntityStatus('ENTITY_STATUS_PAUSED');

// Create and set the bidding strategy.
$demandGenBidStrategy =
    new Google_Service_DisplayVideo_DemandGenBiddingStrategy();
$demandGenBidStrategy->setValue(12000000);
$biddingStrategy = new Google_Service_DisplayVideo_BiddingStrategy();
$biddingStrategy->setDemandGenBid($demandGenBidStrategy);
$adGroup->setBidStrategy($biddingStrategy);

// Create and set the inventory control.
$selectedInventories =
    new Google_Service_DisplayVideo_SelectedInventories();
$selectedInventories->setAllowYoutubeStream(true);
$selectedInventories->setAllowYoutubeShorts(true);
$inventoryControl =
    new Google_Service_DisplayVideo_AdGroupInventoryControl();
$inventoryControl->setSelectedInventories($selectedInventories);
$adGroup->setAdGroupInventoryControl($inventoryControl);

// Call the API, creating the ad group under the advertiser and
// line item given.
try {
    $result = $this->service->advertisers_adGroups->create(
        $advertiserId,
        $adGroup
    );
} catch (\Exception $e) {
    $this->renderError($e);
    return;
}

// Display the new ad group.
printf('<p>Demand Gen Ad Group %s was created.</p>', $result['name']);