HI Vishal! Sory for my pure engliish. I have same issue.

want to upload sitelinks using googleads-php-lib 
<https://github.com/googleads/googleads-php-lib>

I tried using the following example: 
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201609/Extensions/AddSitelinks.php
.

My steps. 
1. Create project in api console and create credentials type other. clientId 
and clientSecret
i copied to [OATH2] section in adsapi_php.ini.
2.I turned on all adwords apis in project.
3. I got developer token and copied it with client id to [ADWORDS] 
section in adsapi_php.ini.
4. I also obtained the refresh token using the code found in 
GetRefreshToken.php 
and I copied to [OATH2] section in adsapi_php.ini.

But when executing the scripts I get the following 400 response:

Exeption 400 Bad Request` response: { "error": "invalid_client",
"error_description": "Bad Request" } after line $customers =
$customerService->getCustomers();


Thanks!

On Tuesday, December 27, 2016 at 10:54:12 PM UTC+2, Vishal Vinayak (Adwords 
API Team) wrote:
>
> Hi,
>
> Looks like this error is related to your OAuth credentials and not your 
> developer token. Could you provide me with the steps that you followed to 
> create OAuth credentials? 
>
> Regards,
> Vishal, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d19c8e93-c00f-496d-8a3f-276afbcc07ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to