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 
<[email protected]> 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 
<https://developers.google.com/google-ads/api/docs/client-libs> or by our REST 
interface <https://developers.google.com/google-ads/api/rest/overview> 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 
<https://developers.google.com/google-ads/api/rest/design/json-mappings?hl=en> 
with 
additional information such as  request ID 
<https://developers.google.com/google-ads/api/docs/concepts/call-structure#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 
<https://developers.google.com/google-ads/api/docs/client-libs?hl=en> 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 
<https://developers.google.com/google-ads/api/docs/samples/get-artifact-metadata>
 in 
the client library of your choice for the ability to choose what is 
returned instead of getting everything on the field.

On Tuesday, March 29, 2022 at 5:02:29 AM UTC+2 adsapi wrote:

> 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 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  with request-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#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 
> [email protected].
>  
>
> Regards,
> [image: Google Logo] 
> Darwin 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Ys51k:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9529c319-be76-498c-93d3-54533f76cf4an%40googlegroups.com.
  • So... Werner Reyneke
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Werner Reyneke

Reply via email to