디맨드젠 광고 그룹은 광고 그룹에 속한 광고에 대한 정확한 입찰 및 게재 관리를 제공합니다. 이는 AdGroup 리소스에서 입찰
전략, 인벤토리 설정, 타겟팅을 통해 구성됩니다.
광고 그룹에는 입찰에서 낙찰된 후 게재되는 구성된 광고 소재인 광고라는 하위 리소스가 있습니다.
구성 선택
디맨드젠 광고 그룹을 만들기 전에 다음과 같은 선택적 설정을 고려하여 광고 게재를 추가로 관리하세요.
bidStrategy는 타겟 CPA, 타겟 CPC 또는 타겟 광고 투자수익(ROAS) 입찰 전략을 사용할 때 상위 광고 항목과 비교하여 광고 그룹에 다른 타겟 값을 설정하도록DemandGenBiddingStrategy로 구성할 수 있습니다.adGroupInventoryControl을 설정하여 광고 그룹이 입찰할 인벤토리와 광고가 게재될 인벤토리를 선택할 수 있습니다.targetingExpansion을 사용하면 잠재고객 타겟팅을 사용하는 광고 그룹에 타겟팅 최적화를 사용 설정할 수 있습니다. 타겟팅 최적화는 설정된 인구통계학적 타겟팅을 넘어 게재를 확장합니다. 인구통계학적 확장을 제외하여 이를 제한할 수 있습니다.
수요 창출 광고 그룹을 만들 때는
adGroupFormat 필드를 AD_GROUP_FORMAT_DEMAND_GEN으로 설정해야 합니다.
광고그룹 만들기
다음 설정을 사용하여 디맨드젠 광고 그룹을 만드는 방법은 다음과 같습니다.
- 전환당 평균 비용 12달러를 목표로 최적화하는 입찰 전략으로, 상위 광고 항목에서 타겟 CPA 입찰 전략을 상속합니다.
- YouTube 인스트림 및 Shorts 인벤토리에만 입찰합니다.
자바
// 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());
Python
# 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.")
PHP
// 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']);