กลุ่มโฆษณา Demand Gen มีการควบคุมการเสนอราคาและการแสดงโฆษณาที่แม่นยำสำหรับโฆษณาในกลุ่ม โดยจะกำหนดค่าในแหล่งข้อมูล AdGroup ผ่านกลยุทธ์การเสนอราคา
การตั้งค่าพื้นที่โฆษณา และการกำหนดเป้าหมาย
กลุ่มโฆษณามีแหล่งข้อมูลย่อยที่เรียกว่าโฆษณา ซึ่งเป็นครีเอทีฟโฆษณาที่กำหนดค่าไว้ซึ่งจะแสดงหลังจากชนะการประมูล
เลือกการกำหนดค่า
ก่อนสร้างกลุ่มโฆษณา Demand Gen ให้พิจารณาการตั้งค่าที่ไม่บังคับต่อไปนี้เพื่อเปิดใช้การควบคุมการแสดงโฆษณาเพิ่มเติม
bidStrategyสามารถกำหนดค่าด้วยDemandGenBiddingStrategyเพื่อตั้งค่าเป้าหมายที่แตกต่างกันสำหรับ กลุ่มโฆษณาเมื่อเทียบกับรายการโฆษณาหลักเมื่อใช้กลยุทธ์การเสนอราคาด้วย CPA ที่ตั้งไว้, target CPC, หรือการเสนอราคา ROAS เป้าหมายadGroupInventoryControlสามารถตั้งค่าเพื่อเลือกพื้นที่โฆษณาที่ กลุ่มโฆษณาจะเสนอราคาและโฆษณาจะแสดงtargetingExpansionช่วยให้คุณเปิดการกำหนดเป้าหมายแบบเพิ่มประสิทธิภาพ สำหรับกลุ่มโฆษณาที่ใช้การกำหนดกลุ่มเป้าหมายได้ การกำหนดเป้าหมายแบบเพิ่มประสิทธิภาพจะขยายการแสดงโฆษณาให้ครอบคลุมมากกว่าการกำหนดเป้าหมายตามข้อมูลประชากรที่คุณตั้งไว้ คุณสามารถจำกัดการขยายนี้ได้โดยการยกเว้นการขยายข้อมูลประชากร
เมื่อสร้างกลุ่มโฆษณา Demand Gen คุณต้องตั้งค่าฟิลด์
adGroupFormat เป็น AD_GROUP_FORMAT_DEMAND_GEN ด้วย
สร้างกลุ่มโฆษณา
วิธีสร้างกลุ่มโฆษณา Demand Gen ด้วยการตั้งค่าต่อไปนี้
- กลยุทธ์การเสนอราคาที่เพิ่มประสิทธิภาพเพื่อให้มีค่าใช้จ่ายเฉลี่ย 12 ดอลลาร์สหรัฐต่อ Conversion โดยรับช่วงกลยุทธ์การเสนอราคาด้วย CPA ที่ตั้งไว้จากรายการโฆษณาหลัก
- จะเสนอราคาเฉพาะพื้นที่โฆษณาในสตรีมและ Shorts ของ YouTube เท่านั้น
Java
// 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']);