Not getting Campaign Details in getAllAdgroup call

41 views
Skip to first unread message

Saurabh Suman

unread,
Mar 3, 2022, 7:34:08 AM3/3/22
to Google Ads API and AdWords API Forum
Hi Team,
   While doing getAllAdgroup API call we are not getting the campaign details in response. 

Request :
google.ads.googleads.v9.services.GoogleAdsService/Search, Endpoint: googleads.googleapis.com:443,  RequestID: qI5G7dPSjcnPoIMTkibCKQ, ResponseCode: OK, Fault: null.
query: "SELECT ad_group.type, ad_group.ad_rotation_mode, ad_group.base_ad_group, bidding_strategy.id, bidding_strategy.name, bidding_strategy.resource_name, bidding_strategy.type, ad_group.cpc_bid_micros, ad_group.cpm_bid_micros, bidding_strategy.enhanced_cpc, ad_group.final_url_suffix, ad_group.id, ad_group.name, ad_group.labels, ad_group.status, ad_group.effective_target_cpa_micros, ad_group.effective_target_cpa_source, bidding_strategy.target_cpa.target_cpa_micros, bidding_strategy.target_roas.target_roas, ad_group.effective_target_roas, ad_group.tracking_url_template, ad_group.url_custom_parameters, campaign.base_campaign, campaign.id, campaign.name FROM ad_group WHERE campaign.id IN (1537612735) AND ad_group.status IN (\'ENABLED\', \'PAUSED\', \'REMOVED\') ORDER BY ad_group.id ASC"
Response:
  ad_group {
    resource_name: "customers/******/adGroups/58986403656"
    status: ENABLED
    type: SEARCH_STANDARD
    ad_rotation_mode: OPTIMIZE
    id: 58986403656
    name: "One Law Group, S.C. BRANDING 1105141600"
    base_ad_group: "customers/*******/adGroups/58986403656"
    cpc_bid_micros: 5320000
    cpm_bid_micros: 10000
    effective_target_cpa_micros: 0
  }

Google Ads API Forum Advisor

unread,
Mar 4, 2022, 12:30:24 AM3/4/22
to saurabhs...@gmail.com, adwor...@googlegroups.com
Hi Saurabh,

Thank you for reaching out to our API support team and for providing the query and a sample of the response.

So our team can take a closer look, could you also share the complete logs (request, response), that includes the login-customer-id that was used? 

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Xl2LK:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Mar 7, 2022, 1:28:01 AM3/7/22
to saurabhs...@gmail.com, adwor...@googlegroups.com
Hi Saurabh,

Thank you for providing more details to your concern.

Before I proceed to your concern, I would like to inform you first that I have deleted your latest reply post in this forum thread as it contains generated logs.

Moving forward, upon impersonating the report on my end using the GAQL that initially provided in your account, I wasn't able to replicate the issue as I can get the campaign details. With this, could you provide more details to the issue and how it was encountered?

Also, please provide the complete request and response logs with request ID and request header generated on your end.

If you haven't enabled the logging of the API transactions for the specific client library that you are using, then please refer to the specific guide below:
Java - https://developers.google.com/google-ads/api/docs/client-libs/java/logging
.Net - https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging
PHP - https://developers.google.com/google-ads/api/docs/client-libs/php/logging
Python - https://developers.google.com/google-ads/api/docs/client-libs/python/logging
Ruby - https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging
Perl - https://developers.google.com/google-ads/api/docs/client-libs/perl/logging

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Xl2LK:ref
Reply all
Reply to author
Forward
0 new messages