Some CustomerIDs have data on the Ads Dashboard, but nothing from the API.

35 views
Skip to first unread message

Werner Reyneke

unread,
Mar 28, 2022, 8:06:03 AM3/28/22
to Google Ads API and AdWords API Forum
Good day

Some of my client's Customer IDs are not returning any data from the Google API, however they do have ads data on the ad campaigns dashboard.

Why would they not return anything via the API for the exact same customer id's and same date range?

Please advise.

Kind regards,
Werner Reyneke

Google Ads API Forum Advisor

unread,
Mar 28, 2022, 11:02:29 PM3/28/22
to wrey...@gmail.com, adwor...@googlegroups.com

Hi Werner,


Thanks for reaching out to the Google Ads API Support team.
 

So our team can better check this concern, could you provide the complete Ads UI screenshot and the complete API logs (request and response with request-id)?
 

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
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ys51k:ref

Werner Reyneke

unread,
Apr 21, 2022, 9:20:37 AM4/21/22
to Google Ads API and AdWords API Forum
Hi 

I need a code sample in C# please on how to exactly call the http url with the appropriate parameters. I cannot find a proper example on the below: for example, what is the Authorization Bearer access token?  I have never used it while calling the API to get customer data before.

Thank you,
Werner

On Mon, Apr 11, 2022 at 4:24 PM Google Ads API Forum Advisor <ads...@forumsupport.google> wrote:
Hi Werner,

The code you are using isn't supported by this support channel. The logs can be generated either by one of our client libraries or by our REST interface by adding parameter '-i'  to the curl command line.

Could you provide us with logs of request and response to both the API's when log level is set to 'DEBUG' so that we can see what you are seeing?

The request and response appears similar to the JSON Mappings in our REST documentation with additional information such as  request ID. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging”.

With that being said, I am guessing that your query is not supported as there are no number fields in Google Ads. Only resource names such as customer, campaign, metrics.cost_micros or ad_group can be a field. Here's a REST sample that works when replacing the '<>' correctly and placing in a Bash command line:curl -v -D POST "https://googleads.googleapis.com/v10/googleAdsFields/customer" \ --header "Content-Type: application/json" \ --header "login-customer-id: <LOGIN CUSTOMER ID>" \ --header "developer-token: <DEVELOPER TOKEN>" \ --header "Authorization: Bearer <ACCESS TOKEN>"

You may also use our Get Artifact Metadata sample in the client library of your choice for the ability to choose what is returned instead of getting everything on the field.

Reply all
Reply to author
Forward
0 new messages