Hello Nikisha ,
Thank you for the response. I think the client libraries will send
protcol buff bytes array to the endpoints. not the JSON, am I right? here
is how I sent the endpoints:
GoogleAdsClient googleAdsClient =
GoogleAdsClient.newBuilder()
.setCredentials(credentials)
.setDeveloperToken(token)//Rw85yleL4r5CzsMccat8MQ
.setLoginCustomerId(customerId)
.setEnableGeneratedCatalog(false)
.setEndpoint("127.0.0.1:8800");
Can I make the client libraries send JSON via http? the reason is I want
set up a http proxy which managers the token. the full chain is:
client ---> proxy via client libraries
proxy attach the Authorization in the http head and foward them to the
googleads.googleapis.com
Now what the proxy received is proto buff and it cannot attach the
Authorization. if the client libraries can send http JSON, I can attach
the Authorization in the http head easily.
在 2019年12月20日星期五 UTC+8上午1:37:27,adsapiforumadvisor写道:
>
> Hello Sean,
>
> Thank you for reaching out. The Google Ads API Beta exposes both standard
> JSON REST endpoints and a high-performance gRPC <https://grpc.io/> interface.
> You
> could use our pre-built client libraries
> <https://developers.google.com/google-ads/api/docs/client-libs> to make
> the API call using these JSON REST endpoints
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#endpoint>.
>
> Let us know if you have any additional concerns.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UOEtDL: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
"AdWords API and Google Ads 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/d3e758a4-e172-4019-85a9-d1a29891d79f%40googlegroups.com.