Adwords API : GetCampaign.php > Number of results found: 0

118 views
Skip to first unread message

boris betc

unread,
Oct 9, 2018, 7:49:01 PM10/9/18
to AdWords API and Google Ads API Forum

Hello,


I have a problem using the Adwords API.

I validated my Adwords API Developer Token, in my Manager account.

Then I wanted to test the API with a client TEST account.


I need your help because when I run GetCampaign.php, there are no campaigns found.


Here is our setup :


Production Adwords Manager Account : boris...@gmail.com
API Developer token : the token I get after the validation process (I can give it to you in private)
Access level : basic access validated


TEST account : betctestm...@gmail.com
ID Manager TEST: 524-293-1082
ID Client TEST: 368-235-5970


Setup file used > adsapi_php.ini (I can give it to you in private)


Google Cloud Platform Application ID, used for refreshToken : test-adwords-218209


Result GetCampaigns.php : Number of results found : 0
Console Screenshot in attachment


Thanks for your help :)

console GetCampaigns.php anony.png

Dannison Yao (AdWords API Team)

unread,
Oct 10, 2018, 1:20:01 AM10/10/18
to AdWords API and Google Ads API Forum
Hi Boris,

Thanks for reaching out. I'm from the AdWords API team and I'll provide support for your concern.

Could you clarify if the campaign type under the clientCustomerID 368-235-5970 is True View for reach? I asked this because upon checking, there is 1 campaign in your client test account which is a video campaign. To clarify, campaigns of the type True View for Reach isn't supported in the AdWords API as of the moment.

Regards,
Dannison
AdWords API Team

meryt...@gmail.com

unread,
Oct 10, 2018, 4:24:27 AM10/10/18
to AdWords API and Google Ads API Forum
Mee too
I dont know why
i fixing it over ă week

na na pa

unread,
Oct 10, 2018, 12:18:01 PM10/10/18
to AdWords API and Google Ads API Forum
oh
yeah
i have problem :(((
i not fix it
help me

Dannison Yao (AdWords API Team)

unread,
Oct 10, 2018, 11:51:37 PM10/10/18
to AdWords API and Google Ads API Forum
Hi there,

In order for me to understand your issue more, could you provide more details on the issue you're having? Please send over (via reply privately to author) screenshots, a description of the issue you're having, your SOAP request and response or any other information you think might help us investigate the problem.

Hope to hear from you soon.

Sincerely,
Dannison
AdWords API Team

mts09...@gmail.com

unread,
Oct 15, 2018, 3:01:06 AM10/15/18
to AdWords API and Google Ads API Forum

I have same problem and I reply privately to author with screenshots.
Please help to fix it! Thanks a lot!

Dannison Yao (AdWords API Team)

unread,
Oct 15, 2018, 11:03:35 PM10/15/18
to AdWords API and Google Ads API Forum
Hi there,

I was able to receive the screenshots you sent yesterday via reply privately to author, and I've also responded privately. Have you received my response? If not, please see response below:

"Upon checking, 989-401-0993 is a test client account and should return the data when using the CampaignService.get(). To further investigate this issue, could you please provide the complete SOAP logs? You may refer to this documentation on what SOAP logs look like, and you can click on this link for a guide on how to turn on SOAP logging on PHP."

Please provide the complete SOAP logs (via reply privately to author) so I can investigate this further.

Sincerely,
Dannison
AdWords API Team

Michael Cloonan (AdWords API Team)

unread,
Oct 18, 2018, 8:25:08 AM10/18/18
to AdWords API and Google Ads API Forum
Hello,

It looks like you may be having trouble receiving email, so I will include the reply I sent via email here so that you can keep up to date with the latest on this issue.

The log file you provided doesn't actually include any SOAP, which looks like XML. You should take a look through the PHP library options to familiarize yourself with how to capture the SOAP because that's a very useful troubleshooting tool, even when you don't have to contact us.
 
That said, I was able to reproduce the issue and generate my own SOAP request/response for this account, where it shows that it returns no campaigns. I've forwarded those logs to our engineering team so they can take a look to try to determine why this campaign isn't showing up in the API. As far as I can tell, it should be returned.
 
I will let you know when I find anything out.

Regards,
Mike, AdWords API Team

mts09...@gmail.com

unread,
Oct 29, 2018, 3:38:42 AM10/29/18
to AdWords API and Google Ads API Forum
any update about this issue ?

Michael Cloonan (AdWords API Team)

unread,
Oct 29, 2018, 9:01:30 AM10/29/18
to AdWords API and Google Ads API Forum
Hello,

I apologize for the slow turnaround here. Unfortunately, we have no updates yet; I've reached out to the team again in hopes of getting an answer quickly.

Regards,
Mike, AdWords API Team

Michael Cloonan (AdWords API Team)

unread,
Oct 30, 2018, 8:34:56 AM10/30/18
to AdWords API and Google Ads API Forum
Hello,

You are logged into a manager account, using a consolidated view of all campaigns in its children accounts. However, this is not possible in the API, so if you request campaigns in a manager account, it will correctly return 0 results because there are no campaigns in that account, only in its sub-accounts. If you change the customer ID you specify in the API request to the one where the campaign is located, it should return correctly.

Regards,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages