호텔 광고의 경우 개별 캠페인에 입찰 전략을 할당할 수 있습니다.
호텔 광고에 대한 입찰 전략 선택에 대한 자세한 내용은 다음을 참고하세요. 호텔 광고를 위한 입찰 개요 입찰 전략에 익숙해진 후 Google Ads API를 사용하여 호텔 캠페인 입찰 전략 할당 및 업데이트
입찰 전략 할당
새 호텔 캠페인을 만드는 과정에서 전략을 할당하려면 다음 안내를 따르세요. 단계:
campaign_bidding_strategy
을 선택합니다. 다음 호텔 광고에는 다음과 같은 전략을 사용할 수 있습니다.commission
(전환당 또는 숙박당)percent_cpc
(향상된 CPC 입찰기능 지원)manual_cpc
(향상된 CPC 입찰기능 지원)
선택한 전략입니다. 예를 들어
percent_cpc
전략의 경우 다음과 같이 설정할 수 있습니다.enhanced_cpc_enabled
에서true
(으)로새 캠페인을 만들 때 전략을 설정합니다. 예를 들어 Java에서
campaign_bidding_strategy
필드의 setter 메서드 (메서드 이름) 규칙은setcampaign_bidding_strategy
)입니다.Campaign
인스턴스의 빌더 내에서commission
전략의 경우 새 캠페인을 만들 때PaymentMode
를 설정하는 추가 문
이 예에서는 다음과 같은 경우 percent_cpc
입찰 전략을 설정하는 방법을 보여줍니다.
새 캠페인 만들기:
자바
// Creates the campaign. Campaign campaign = Campaign.newBuilder() .setName("Interplanetary Cruise #" + getPrintableDateTime()) // Configures settings related to hotel campaigns including advertising channel type // and hotel setting info. .setAdvertisingChannelType(AdvertisingChannelType.HOTEL) .setHotelSetting(hotelSettingInfo) // Recommendation: Sets the campaign to PAUSED when creating it to prevent // the ads from immediately serving. Set to ENABLED once you've added // targeting and the ads are ready to serve .setStatus(CampaignStatus.PAUSED) // Sets the bidding strategy to Percent CPC. Only Manual CPC and Percent CPC can be used // for hotel campaigns. .setPercentCpc( PercentCpc.newBuilder().setCpcBidCeilingMicros(cpcBidCeilingMicroAmount).build()) // Sets the budget. .setCampaignBudget(budgetResourceName) // Adds the networkSettings configured above. .setNetworkSettings(networkSettings) .build();
C#
// Create a campaign. Campaign campaign = new Campaign() { Name = "Interplanetary Cruise Campaign #" + ExampleUtilities.GetRandomString(), // Configure settings related to hotel campaigns including advertising channel type // and hotel setting info. AdvertisingChannelType = AdvertisingChannelType.Hotel, HotelSetting = new HotelSettingInfo() { HotelCenterId = hotelCenterAccountId }, // Recommendation: Set the campaign to PAUSED when creating it to prevent // the ads from immediately serving. Set to ENABLED once you've added // targeting and the ads are ready to serve. Status = CampaignStatus.Paused, // Sets the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC can // be used for hotel campaigns. PercentCpc = new PercentCpc() { CpcBidCeilingMicros = cpcBidCeilingMicroAmount }, // Set the budget. CampaignBudget = budgetResourceName, // Configure the campaign network options. Only Google Search is allowed for // hotel campaigns. NetworkSettings = new NetworkSettings() { TargetGoogleSearch = true } };
PHP
// Creates a campaign. $campaign = new Campaign([ 'name' => 'Interplanetary Cruise Campaign #' . Helper::getPrintableDatetime(), // Configures settings related to hotel campaigns including advertising channel type // and hotel setting info. 'advertising_channel_type' => AdvertisingChannelType::HOTEL, 'hotel_setting' => new HotelSettingInfo(['hotel_center_id' => $hotelCenterAccountId]), // Recommendation: Set the campaign to PAUSED when creating it to prevent // the ads from immediately serving. Set to ENABLED once you've added // targeting and the ads are ready to serve. 'status' => CampaignStatus::PAUSED, // Sets the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC can be used // for hotel campaigns. 'percent_cpc' => new PercentCpc([ 'cpc_bid_ceiling_micros' => $cpcBidCeilingMicroAmount ]), // Sets the budget. 'campaign_budget' => $budgetResourceName, // Configures the campaign network options. Only Google Search is allowed for // hotel campaigns. 'network_settings' => new NetworkSettings([ 'target_google_search' => true, ]), ]);
Python
# Create campaign. campaign_operation = client.get_type("CampaignOperation") campaign = campaign_operation.create campaign.name = f"Interplanetary Cruise Campaign {uuid.uuid4()}" # Configures settings related to hotel campaigns including advertising # channel type and hotel setting info. campaign.advertising_channel_type = ( client.enums.AdvertisingChannelTypeEnum.HOTEL ) campaign.hotel_setting.hotel_center_id = hotel_center_account_id # Recommendation: Set the campaign to PAUSED when creating it to prevent the # ads from immediately serving. Set to ENABLED once you've added targeting # and the ads are ready to serve. campaign.status = client.enums.CampaignStatusEnum.PAUSED # Set the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC # can be used for hotel campaigns. campaign.percent_cpc.cpc_bid_ceiling_micros = cpc_bid_ceiling_micro_amount # Sets the budget. campaign.campaign_budget = budget_resource_name # Set the campaign network options. Only Google Search is allowed for hotel # campaigns. campaign.network_settings.target_google_search = True
Ruby
# Create a campaign. campaign_operation = client.operation.create_resource.campaign do |c| c.name = generate_random_name_field("Interplanetary Cruise Campaign") # Configure settings related to hotel campaigns. c.advertising_channel_type = :HOTEL c.hotel_setting = client.resource.hotel_setting_info do |hsi| hsi.hotel_center_id = hotel_center_account_id end # Recommendation: Set the campaign to PAUSED when creating it to prevent the # ads from immediately serving. Set to ENABLED once you've added targeting and # the ads are ready to serve. c.status = :PAUSED # Set the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC can # be used for hotel campaigns. c.percent_cpc = client.resource.percent_cpc do |pcpc| pcpc.cpc_bid_ceiling_micros = cpc_bid_ceiling_micro_amount end # Set the budget. c.campaign_budget = budget_resource # Configures the campaign network options. Only Google Search is allowed for # hotel campaigns. c.network_settings = client.resource.network_settings do |ns| ns.target_google_search = true end end
Perl
# Create a hotel campaign. my $campaign = Google::Ads::GoogleAds::V17::Resources::Campaign->new({ name => "Interplanetary Cruise Campaign #" . uniqid(), # Configure settings related to hotel campaigns including advertising # channel type and hotel setting info. advertisingChannelType => HOTEL, hotelSetting => Google::Ads::GoogleAds::V17::Resources::HotelSettingInfo->new({ hotelCenterId => $hotel_center_account_id } ), # Recommendation: Set the campaign to PAUSED when creating it to prevent # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. status => Google::Ads::GoogleAds::V17::Enums::CampaignStatusEnum::PAUSED, # Set the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC # can be used for hotel campaigns. percentCpc => Google::Ads::GoogleAds::V17::Common::PercentCpc->new( {cpcBidCeilingMicros => $cpc_bid_ceiling_micro_amount} ), # Set the budget. campaignBudget => $budget_resource_name, # Configure the campaign network options. Only Google Search is allowed for # hotel campaigns. networkSettings => Google::Ads::GoogleAds::V17::Resources::NetworkSettings->new({ targetGoogleSearch => "true" })});
입찰 전략 업데이트
캠페인의 입찰 전략을 업데이트하려면
CampaignOperation.update
님,
입찰 전략 할당에 설명된 대로 Campaign
의 필드를 설정합니다.