แคมเปญ Demand Gen ช่วยให้คุณแชร์เรื่องราวของแบรนด์กับ ผู้คนในแพลตฟอร์มที่เน้นภาพของ Google ได้แก่ YouTube (รวมถึง Shorts), สำรวจ, Gmail, Google Maps และเครือข่าย Display ของ Google Demand Gen เข้าถึงลูกค้าผ่านทัชพอยต์ที่หลากหลายและใช้ Google AI เพื่อแสดงครีเอทีฟโฆษณาต่อกลุ่มเป้าหมายที่เกี่ยวข้องและเพิ่มประสิทธิภาพการเสนอราคาตลอดทั้ง Funnel ไปพร้อมๆ กับให้คุณควบคุมชิ้นงานและตำแหน่งโฆษณาของแคมเปญได้อย่างเต็มที่
แหล่งข้อมูล API หลัก
เมื่อจัดการแคมเปญ Demand Gen ใน Google Ads API คุณจะต้องใช้แหล่งข้อมูลและการตั้งค่าต่อไปนี้
| แหล่งข้อมูลหลัก | ฟิลด์และการตั้งค่า Demand Gen หลัก |
|---|---|
CampaignBudget
|
explicitly_shared = false; รองรับรายวัน
(amount_micros) หรืองบประมาณรวมที่กำหนดเอง
(total_amount_micros ที่มี
period = CUSTOM_PERIOD)
|
Campaign |
advertising_channel_type = DEMAND_GEN; กลยุทธ์การเสนอราคา
(maximize_conversions,
maximize_conversion_value, target_cpa,
target_roas, target_spend, หรือ
target_cpc); shopping_setting ที่ไม่บังคับสำหรับ
ฟีดสินค้า
|
AdGroup |
audience_setting.use_audience_grouped;
demand_gen_ad_group_settings.channel_controls (YouTube,
สำรวจ, Gmail, Maps, Display).
|
AdGroupCriterion
|
audience
(AudienceInfo),
location, language, and
listing_group
(
ListingGroupInfo)
|
AdGroupAd &Asset
|
ad.demand_gen_multi_asset_ad,
ad.demand_gen_carousel_ad,
ad.demand_gen_video_responsive_ad, หรือ
ad.demand_gen_product_ad.
|
สร้างแคมเปญ Demand Gen
เราขอแนะนำให้สร้างงบประมาณ แคมเปญ กลุ่มโฆษณา ชิ้นงาน และโฆษณา Demand Gen
แบบอะตอมมิกในคำขอ GoogleAdsService.Mutate รายการเดียว
โดยใช้รหัสทรัพยากรชั่วคราวที่เป็นค่าลบ เพื่อให้ทรัพยากรที่ขึ้นต่อกันอ้างอิงถึงกันและกัน:
Java
// The below methods create and return MutateOperations that we later provide to // the GoogleAdsService.Mutate method in order to create the entities in a single // request. Since the entities for a Demand Gen campaign are closely tied to one-another // it's considered a best practice to create them in a single Mutate request; the // entities will either all complete successfully or fail entirely, leaving no // orphaned entities. See: // https://developers.google.com/google-ads/api/docs/mutating/overview List<MutateOperation> operations = new ArrayList<>(); // A utility to create temporary IDs for the resources. AtomicLong tempId = new AtomicLong(-1); // Creates a new campaign budget operation and adds it to the list of operations. String budgetResourceName = ResourceNames.campaignBudget(customerId, tempId.getAndDecrement()); operations.add( MutateOperation.newBuilder() .setCampaignBudgetOperation(createCampaignBudgetOperation(budgetResourceName)) .build()); // Creates a new campaign operation and adds it to the list of operations. String campaignResourceName = ResourceNames.campaign(customerId, tempId.getAndDecrement()); operations.add( MutateOperation.newBuilder() .setCampaignOperation( createDemandGenCampaignOperation(campaignResourceName, budgetResourceName)) .build()); // Creates a new ad group operation and adds it to the list of operations. String adGroupResourceName = ResourceNames.adGroup(customerId, tempId.getAndDecrement()); operations.add( MutateOperation.newBuilder() .setAdGroupOperation( createDemandGenAdGroupOperation(adGroupResourceName, campaignResourceName)) .build()); // Creates the asset operations for the ad. Map<String, String> assetResourceNames = new HashMap<>(); operations.addAll( createAssetOperations(customerId, youTubeVideoId, tempId, assetResourceNames)); // Creates a new ad group ad operation and adds it to the list of operations. operations.add( MutateOperation.newBuilder() .setAdGroupAdOperation( createDemandGenAdGroupAdOperation(adGroupResourceName, assetResourceNames)) .build()); // Creates the service client. try (GoogleAdsServiceClient googleAdsServiceClient = googleAdsClient.getLatestVersion().createGoogleAdsServiceClient()) { // Sends the mutate request. MutateGoogleAdsResponse response = googleAdsServiceClient.mutate(String.valueOf(customerId), operations); // Prints the results. System.out.printf( "Created campaign with resource name: %s%n", response .getMutateOperationResponses(1) .getCampaignResult() .getResourceName()); System.out.printf( "Created ad group with resource name: %s%n", response .getMutateOperationResponses(2) .getAdGroupResult() .getResourceName()); for (Map.Entry<String, String> entry : assetResourceNames.entrySet()) { System.out.printf( "Created asset with temporary resource name '%s' and final resource name '%s'.%n", entry.getValue(), response .getMutateOperationResponses( operations.indexOf(getOperationForAsset(operations, entry.getValue()))) .getAssetResult() .getResourceName()); } System.out.printf( "Created ad group ad with resource name: %s%n", response .getMutateOperationResponses(operations.size() - 1) .getAdGroupAdResult() .getResourceName()); }
C#
// The below methods create and return MutateOperations that we later provide to // the GoogleAdsService.Mutate method in order to create the entities in a single // request. Since the entities for a Demand Gen campaign are closely tied to one-another // it's considered a best practice to create them in a single Mutate request; the // entities will either all complete successfully or fail entirely, leaving no // orphaned entities. See: // https://developers.google.com/google-ads/api/docs/mutating/overview MutateOperation campaignBudgetOperation = CreateCampaignBudgetOperation(budgetResourceName); MutateOperation campaignOperation = CreateDemandGenCampaignOperation(campaignResourceName, budgetResourceName); MutateOperation adGroupOperation = CreateAdGroupOperation(adGroupResourceName, campaignResourceName); // Send the operations in a single mutate request. MutateGoogleAdsRequest mutateGoogleAdsRequest = new MutateGoogleAdsRequest { CustomerId = customerId.ToString() }; // It's important to create these entities in this order because they depend on // each other, for example the ad group depends on the // campaign, and the ad group ad depends on the ad group. mutateGoogleAdsRequest.MutateOperations.Add(campaignBudgetOperation); mutateGoogleAdsRequest.MutateOperations.Add(campaignOperation); mutateGoogleAdsRequest.MutateOperations.Add(adGroupOperation); mutateGoogleAdsRequest.MutateOperations.AddRange( CreateAssetOperations( videoAssetResourceName, videoId, logoResourceName, client.Config ) ); mutateGoogleAdsRequest.MutateOperations.Add( CreateDemandGenAdOperation( adGroupResourceName, videoAssetResourceName, logoResourceName ) ); MutateGoogleAdsResponse response = googleAdsServiceClient.Mutate(mutateGoogleAdsRequest);
PHP
This example is not yet available in PHP; you can take a look at the other languages.
Python
# The below methods create and return MutateOperations that we later provide # to the GoogleAdsService.Mutate method in order to create the entities in a # single request. Since the entities for a Demand Gen campaign are closely # tied to one-another it's considered a best practice to create them in a # single Mutate request; the entities will either all complete successfully # or fail entirely, leaving no orphaned entities. See: # https://developers.google.com/google-ads/api/docs/mutating/overview mutate_operations: List[MutateOperation] = [ # It's important to create these entities in this order because they # depend on each other, for example the ad group depends on the # campaign, and the ad group ad depends on the ad group. create_campaign_budget_operation(client, budget_resource_name), create_demand_gen_campaign_operation( client, campaign_resource_name, budget_resource_name ), create_ad_group_operation( client, ad_group_resource_name, campaign_resource_name ), *create_asset_operations( # Use iterable unpacking client, video_asset_resource_name, video_id, logo_asset_resource_name, ), create_demand_gen_ad_operation( client, ad_group_resource_name, video_asset_resource_name, logo_asset_resource_name, ), ] # Send the operations in a single mutate request. googleads_service.mutate( customer_id=customer_id, mutate_operations=mutate_operations )
Ruby
operations = [] operations << client.operation.mutate do |m| m.campaign_budget_operation = create_campaign_budget_operation(client, budget_resource_name) end operations << client.operation.mutate do |m| m.campaign_operation = create_demand_gen_campaign_operation(client, campaign_resource_name, budget_resource_name) end operations << client.operation.mutate do |m| m.ad_group_operation = create_ad_group_operation(client, ad_group_resource_name, campaign_resource_name) end operations += create_asset_operations(client, video_asset_resource_name, video_id, logo_asset_resource_name).map do |asset_op| client.operation.mutate do |m| m.asset_operation = asset_op end end operations << client.operation.mutate do |m| m.ad_group_ad_operation = create_demand_gen_ad_operation(client, ad_group_resource_name, video_asset_resource_name, logo_asset_resource_name) end response = client.service.google_ads.mutate( customer_id: customer_id, mutate_operations: operations, )
Perl
This example is not yet available in Perl; you can take a look at the other languages.
curl
ดูวิธีการทีละขั้นตอนเกี่ยวกับงบประมาณ กลยุทธ์การเสนอราคา และรูปแบบโฆษณาได้ที่ ดู สร้างแคมเปญ Demand Gen
ค้นหาแคมเปญ Demand Gen
ใช้ GoogleAdsService.SearchStream เพื่อดึงข้อมูล
แอตทริบิวต์และเมตริกประสิทธิภาพของแคมเปญ Demand Gen ที่แบ่งตามเครือข่ายและ
แพลตฟอร์ม YouTube (segments.ad_network_type และ segments.ad_sub_network_type
ต้องเลือกพร้อมกัน)
SELECT
campaign.id,
campaign.name,
campaign.status,
campaign.bidding_strategy_type,
segments.ad_network_type,
segments.ad_sub_network_type,
metrics.impressions,
metrics.clicks,
metrics.conversions,
metrics.cost_micros
FROM campaign
WHERE campaign.advertising_channel_type = DEMAND_GEN
AND segments.date DURING LAST_30_DAYS
ดูข้อมูลเกี่ยวกับการค้นหาการแบ่งย่อยระดับโฆษณา ระดับชิ้นงาน และระดับ Conversion ได้ที่การรายงาน Demand Gen
ขั้นตอนถัดไป
- สร้างแคมเปญ Demand Gen
- ตั้งค่าการกำหนดกลุ่มเป้าหมาย
- ใช้ฟีดสินค้ากับ Demand Gen
- กำหนดค่าการควบคุมแชแนล
- ดึงข้อมูลรายงาน Demand Gen