Re: no Campaign result from Google Ads API Client Library for PHP

37 views
Skip to first unread message
Message has been deleted

Milind Sankeshware (AdWords API Team)

unread,
Oct 15, 2018, 3:20:22 PM10/15/18
to AdWords API and Google Ads API Forum
Hello, 

I deleted your post as it contains your confidential information such as oAuth credentials. In the future, you may refer to this post for guidelines on posting in this forum

On Monday, October 15, 2018 at 3:01:11 AM UTC-4, mts09...@gmail.com wrote:
I installed Google Ads API Client Library for PHP (AdWords and Ad Manager) from https://github.com/googleads/googleads-php-lib/
setup in adsapi_php.ini

developerToken = "get it from Production Manger Account **** API Center;Access level:Test Account"

get clientId and clientSecret from console.developer.google.com as shown in Console_developer.png
clientId = "******"
clientSecret = "******"

using the above clientId and clientSecret generate a refreshToken as shown in oauthPlayground.png
refreshToken = "******"

using ******* (Test Manager Account) and ****** (Test Client Account which is another Google Account) to run GetCampaigns.php 
Both of them get Number of results found: 0 as shown in Result.png
clientCustomerId = "******"

What wrong with my settings?
Thanks for your help!

Thanks,
Milind, AdWords API Team. 

Milind Sankeshware (AdWords API Team)

unread,
Oct 15, 2018, 3:22:06 PM10/15/18
to AdWords API and Google Ads API Forum
Hi,

Your setup looks good for me, but you are trying to fetch the campaigns against the manager account. You should fetch the campaigns against the non manager client customer id. Could you please retry getCampaign against the client customer id (non-manager)? If you are still facing an issue, please enable the logging and share the SOAP request and response log so that I can troubleshoot the issue. You can use 'Reply privately to author' option whiles responding. I would suggest to delete your post after my response as you are shearing your private data (clientId, clientSecret, refresh token) on public forum. 

Thanks,
Milind, AdWords API Team
Reply all
Reply to author
Forward
0 new messages