Unrecognized bidding strategy in Video campaign

70 views
Skip to first unread message

san...@knorex.com

unread,
Oct 3, 2024, 11:44:12 PM10/3/24
to Google Ads API and AdWords API Forum
Hi,

I have a campaign with bidding strategy Target CPV but when I query using API, it is giving unknown enum.

Here are logs and screenshot:
Request
-------
MethodName: google.ads.googleads.v17.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=xxx, x-goog-api-client=gl-java/1.8.0_202__Oracle-Corporation gccl/32.0.0 gapic/32.0.0 gax/2.48.1 grpc/1.62.2}
Body: customer_id: "8222924145"
query: "SELECT campaign.bidding_strategy, campaign.accessible_bidding_strategy, campaign.ad_serving_optimization_status, campaign.advertising_channel_sub_type, campaign.advertising_channel_type, campaign.app_campaign_setting.app_id, campaign.app_campaign_setting.app_store, campaign.app_campaign_setting.bidding_strategy_goal_type, campaign.base_campaign, campaign.bidding_strategy_type, campaign.campaign_budget, campaign.commission.commission_rate_micros, campaign.dynamic_search_ads_setting.domain_name, campaign.dynamic_search_ads_setting.feeds, campaign.dynamic_search_ads_setting.language_code, campaign.dynamic_search_ads_setting.use_supplied_urls_only, campaign.end_date, campaign.excluded_parent_asset_field_types, campaign.experiment_type, campaign.final_url_suffix, campaign.frequency_caps, campaign.geo_target_type_setting.negative_geo_target_type, campaign.geo_target_type_setting.positive_geo_target_type, campaign.hotel_setting.hotel_center_id, campaign.id, campaign.labels, campaign.local_campaign_setting.location_source_type, campaign.manual_cpc.enhanced_cpc_enabled, campaign.manual_cpm, campaign.manual_cpv, campaign.maximize_conversion_value.target_roas, campaign.maximize_conversions.target_cpa_micros, campaign.name, campaign.network_settings.target_content_network, campaign.network_settings.target_google_search, campaign.network_settings.target_partner_search_network, campaign.network_settings.target_search_network, campaign.optimization_goal_setting.optimization_goal_types, campaign.optimization_score, campaign.payment_mode, campaign.percent_cpc.cpc_bid_ceiling_micros, campaign.percent_cpc.enhanced_cpc_enabled, campaign.real_time_bidding_setting.opt_in, campaign.resource_name, campaign.selective_optimization.conversion_actions, campaign.serving_status, campaign.shopping_setting.campaign_priority, campaign.shopping_setting.enable_local, campaign.shopping_setting.merchant_id, campaign.shopping_setting.feed_label, campaign.start_date, campaign.status, campaign.target_cpa.cpc_bid_ceiling_micros, campaign.target_cpa.cpc_bid_floor_micros, campaign.target_cpa.target_cpa_micros, campaign.target_impression_share.cpc_bid_ceiling_micros, campaign.target_impression_share.location, campaign.target_impression_share.location_fraction_micros, campaign.target_roas.cpc_bid_ceiling_micros, campaign.target_roas.cpc_bid_floor_micros, campaign.target_roas.target_roas, campaign.target_spend.cpc_bid_ceiling_micros, campaign.target_spend.target_spend_micros, campaign.targeting_setting.target_restrictions, campaign.tracking_setting.tracking_url, campaign.tracking_url_template, campaign.url_custom_parameters, campaign.url_expansion_opt_out, campaign.vanity_pharma.vanity_pharma_display_url_mode, campaign.vanity_pharma.vanity_pharma_text, campaign.video_brand_safety_suitability  FROM campaign WHERE campaign.advertising_channel_type IN (\'VIDEO\' ) AND campaign.status != \'REMOVED\'"


Response
--------
Headers: Metadata(content-disposition=attachment,content-type=application/grpc,request-id=KxaclOosh9thHBU9oRVvNQ,date=Fri, 04 Oct 2024 03:38:42 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000)
Body: results {
  campaign {
    resource_name: "customers/8222924145/campaigns/21780706219"
    status: ENABLED
    ad_serving_optimization_status: OPTIMIZE
    advertising_channel_type: VIDEO
    network_settings {
      target_google_search: false
      target_search_network: false
      target_content_network: true
      target_partner_search_network: false
    }
    experiment_type: BASE
    serving_status: SERVING
    bidding_strategy_type: UNKNOWN_ENUM_VALUE_BiddingStrategyType_20
    geo_target_type_setting {
      positive_geo_target_type: PRESENCE
      negative_geo_target_type: UNKNOWN
    }
    payment_mode: CLICKS
    base_campaign: "customers/8222924145/campaigns/21780706219"
    name: "martin video target cpv 20241004"
    id: 21780706219
    campaign_budget: "customers/8222924145/campaignBudgets/13982028121"
    start_date: "2024-10-04"
    end_date: "2024-10-18"
  }
}
field_mask {
  paths: "campaign.bidding_strategy"
  paths: "campaign.accessible_bidding_strategy"
  paths: "
... TRUNCATED. See README.md to configure/disable log truncation.
Failure message: null
Status: Status{code=OK, description=null, cause=null}.

XTPI-2202-targetCPV.png

Google Ads API Forum Advisor

unread,
Oct 4, 2024, 10:05:14 AM10/4/24
to san...@knorex.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team.

Upon checking your query, I understand that you are getting an unknown enum when you are trying to query a campaign with a bidding strategy Target CPV using API. When we try to execute the same GAQL query which you have provided, we are getting the "biddingStrategyType": "TARGET_CPV". I would suggest you to retry executing the query once again and let us know how it goes from your end.

If you still face the same issue, feel free to reach out to us.
 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGcF1:ref" (ADR-00270589)

Thanks,
 
Google Logo Google Ads API Team


san...@knorex.com

unread,
Oct 4, 2024, 10:46:43 AM10/4/24
to Google Ads API and AdWords API Forum
Hi,
The issue is still happening. I am not getting "biddingStrategyType": "TARGET_CPV" in that campaign.

Google Ads API Forum Advisor

unread,
Oct 4, 2024, 2:46:18 PM10/4/24
to san...@knorex.com, adwor...@googlegroups.com
Hi,

I would recommend that you use this SerachStream REST API Interface and your query. If you are still getting the unknown ENUM, kindly provide us with the complete API logs (request and response with request-id and request header) generated from the REST API Interface in .txt format.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

Emroon Wandee

unread,
Oct 4, 2024, 7:14:34 PM10/4/24
to ads...@forumsupport.google, san...@knorex.com, adwor...@googlegroups.com

ช่วยแก้ปัญหาให้กับผมหน่อย


ในวันที่ ส. 5 ต.ค. 2024 1:45 ก่อนเที่ยง 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum <adwor...@googlegroups.com> เขียนว่า:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/KRweA000000000000000000000000000000000000000000000SKUHG800vyEndG4XSt2m_EXOXLEXzw%40sfdc.net.

Google Ads API Forum Advisor

unread,
Oct 7, 2024, 9:48:58 AM10/7/24
to imro...@gmail.com, san...@knorex.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I would like to inform you that this product officially offers support only in English. It would be best to reply in English if you can. If not, we will try to use Google Translate to support you as best as we can.

Could you confirm whether you are encountering the same issue when trying to retrieve an unknown ENUM while querying a campaign with a Target CPV bidding strategy using the API? If yes, kindly provide us with the complete API logs (request and response with request-id and request header) generated from the REST API Interface in .txt format.


If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

If not, could you further elaborate on what exactly you are looking for from the Google Ads API support team? If possible, please share the related screenshots for further assistance.
Reply all
Reply to author
Forward
0 new messages