Hi,
Thanks for your response.
My question is how to specify login-customer-id in the request by php, like
this: header("login-customer-id: 1234567890"); ?
I have specified the login-customer-id when I built googleAdsClient object,
like this:
$googleAdsClient = (new
GoogleAdsClientBuilder())->fromFile("google_ads_php.ini")
->withOAuth2Credential($oAuth2Credential)
->withLoginCustomerId($customerId)
->build();
I hope you can tell me the exact php code, thanks a lot.
On Monday, August 16, 2021 at 6:37:31 PM UTC+8 adsapi wrote:
> Hi,
>
> Thanks for reaching out to us.
>
> Upon checking the error logs, it seems that the issue
> ‘USER_PERMISSION_DENIED’ occurred due to incorrectly setting the
> 'login-customer-id’ in the request. Note that when a user doesn't have
> permission to access a customer and you’re accessing a client customer then
> the manager's customer ID must be set in the 'login-customer-id’ in the
> header request.
>
> That being said, you may refer to this
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en>
>
> documentation on how to specify the login-customer-id property in the
> request properly.
>
> In addition, you should need included if you also have the ads properties
> file setup that corresponds to the library that you are using (e.g.
> google_ads_php.ini for PHP), as shown here
> <https://developers.google.com/google-ads/api/docs/first-call/refresh-token>
> .
>
> Let us know if you have any further questions.
>
> Regards,
> [image: Google Logo]
> Yasar
> Google Ads API Team
>
>
>
>
> ref:_00D1U1174p._5004Q2LnWda: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/e9311f24-a1ea-431a-9608-372dbe239b66n%40googlegroups.com.