Một nhóm quảng cáo Tạo nhu cầu cung cấp chế độ kiểm soát chính xác về giá thầu và việc phân phát cho các quảng cáo trong nhóm đó. Bạn có thể định cấu hình chế độ này trong tài nguyên AdGroup thông qua chiến lược giá thầu, chế độ cài đặt khoảng không quảng cáo và tiêu chí nhắm mục tiêu.
Nhóm quảng cáo có các tài nguyên con được gọi là quảng cáo. Đây là những mẫu quảng cáo được định cấu hình và phân phát sau khi bạn thắng phiên đấu giá.
Chọn cấu hình
Trước khi tạo một nhóm quảng cáo Tạo nhu cầu, hãy cân nhắc những chế độ cài đặt không bắt buộc này để có thêm quyền kiểm soát việc phân phát quảng cáo:
- Bạn có thể định cấu hình
bidStrategybằngDemandGenBiddingStrategyđể đặt một giá trị mục tiêu khác cho nhóm quảng cáo so với mục hàng cấp trên khi sử dụng chiến lược đặt giá thầu theo CPA mục tiêu, CPC mục tiêu hoặc Chiến lược đặt giá thầu theo lợi tức mục tiêu trên chi tiêu quảng cáo. - Bạn có thể đặt
adGroupInventoryControlđể chọn khoảng không quảng cáo mà nhóm quảng cáo sẽ đặt giá thầu và quảng cáo sẽ phân phát. targetingExpansioncho phép bạn bật tính năng tối ưu hoá tiêu chí nhắm mục tiêu cho nhóm quảng cáo đang sử dụng tiêu chí nhắm mục tiêu theo đối tượng. Tính năng tối ưu hoá tiêu chí nhắm mục tiêu mở rộng phạm vi phân phát ngoài tiêu chí nhắm mục tiêu theo nhân khẩu học mà bạn đã đặt. Bạn có thể hạn chế điều này bằng cách loại trừ tính năng mở rộng thông tin nhân khẩu học.
Khi tạo một nhóm quảng cáo Tạo nhu cầu, bạn cũng phải đặt trường adGroupFormat thành AD_GROUP_FORMAT_DEMAND_GEN.
Tạo một nhóm quảng cáo
Sau đây là cách tạo một nhóm quảng cáo Tạo nhu cầu với các chế độ cài đặt sau:
- Một chiến lược giá thầu tối ưu hoá theo chi phí trung bình là 120.000 VND cho mỗi lượt chuyển đổi, kế thừa chiến lược giá thầu CPA mục tiêu từ mục hàng mẹ.
- Chỉ đặt giá thầu cho khoảng không quảng cáo trong luồng phát và khoảng không quảng cáo Shorts trên 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']);