یک گروه تبلیغاتی Demand Gen ایجاد کنید

یک گروه تبلیغاتی Demand Gen، کنترل دقیقی بر قیمت‌گذاری و ارائه تبلیغات تحت پوشش خود ارائه می‌دهد. این امر در منابع AdGroup از طریق استراتژی قیمت‌گذاری، تنظیمات موجودی و هدف‌گذاری پیکربندی شده است.

گروه‌های تبلیغاتی دارای منابع فرزندی به نام تبلیغات هستند که در واقع تبلیغات پیکربندی‌شده‌ای هستند که پس از برنده شدن در یک مزایده نمایش داده می‌شوند.

پیکربندی‌ها را انتخاب کنید

قبل از ایجاد یک گروه تبلیغاتی Demand Gen، این تنظیمات اختیاری را در نظر بگیرید تا بتوانید کنترل بیشتری بر نمایش تبلیغات داشته باشید:

  • می‌توان bidStrategy DemandGenBiddingStrategy پیکربندی کرد تا هنگام استفاده از استراتژی پیشنهاد قیمت CPA هدف، CPC هدف یا ROAS هدف، مقدار هدف متفاوتی را برای گروه تبلیغاتی در مقایسه با آیتم ردیف والد تعیین کند.
  • adGroupInventoryControl می‌توان طوری تنظیم کرد که موجودی‌هایی را انتخاب کند که گروه تبلیغاتی روی آنها پیشنهاد قیمت می‌دهد و تبلیغات نمایش داده می‌شوند.
  • targetingExpansion به شما امکان می‌دهد هدف‌گیری بهینه را برای گروه تبلیغاتی که از هدف‌گیری مخاطب استفاده می‌کنند، فعال کنید. هدف‌گیری بهینه، خدمات را فراتر از هدف‌گیری جمعیتی تعیین‌شده شما گسترش می‌دهد. می‌توانید این کار را با حذف گسترش جمعیتی محدود کنید.

هنگام ایجاد یک گروه تبلیغاتی Demand Gen، باید فیلد adGroupFormat را نیز روی AD_GROUP_FORMAT_DEMAND_GEN تنظیم کنید.

ایجاد یک گروه تبلیغاتی

در اینجا نحوه ایجاد یک گروه تبلیغاتی Demand Gen با تنظیمات زیر آورده شده است:

  • یک استراتژی پیشنهاد قیمت که با به ارث بردن یک استراتژی پیشنهاد قیمت هدف CPA از آیتم اصلی خود، به طور متوسط ​​هزینه ۱۲ دلار را برای هر تبدیل بهینه می‌کند.
  • فقط برای موجودی شورت و ویدیوهای پخش زنده یوتیوب پیشنهاد قیمت می‌دهد.

جاوا

// 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']);