No result in GetCampaigns.php

23 views
Skip to first unread message

AF SYSTEMS

unread,
Aug 1, 2022, 9:30:27 AM8/1/22
to Google Ads API and AdWords API Forum
Hello
I got to clone https://github.com/googleads/google-ads-php and tried to test
php examples/BasicOperations/GetCampaigns.php --customerId <muycustomerid>
but I can't see any result.
I can see the result in my command prompt.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2022-08-01T10:30:04.363330-03:00] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v11.services.GoogleAdsService/SearchStream", CustomerId: 8573210462, RequestId: "4TTjMkjB9yHO3h_gygw_mQ", IsFault: 0, FaultMessage: "None"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
so it means all work fine?
I can see my campaigns in my google ads account but I can't see any list in prompt.
what is my issue?
Any suggestion will be help me.
Regards

Google Ads API Forum Advisor

unread,
Aug 1, 2022, 9:50:21 AM8/1/22
to araras...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for reaching out to the Google Ads API Forum.

Upon checking, it appears that you’re using a Manager account as the operating customer to pull the campaigns using GetCampaigns.php example. Note that manager account can’t be used as operating customers to pull the campaigns data since campaigns can be pulled using client customer accounts present under manager account as those accounts are managing it. This is the reason that you were getting an empty response. That said, you may consider using client customer accounts as operating customers instead.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d3afX:ref

Wallas Jodi

unread,
Aug 2, 2022, 1:53:15 AM8/2/22
to Google Ads API and AdWords API Forum

Billing Executive
 – a Medical Billing and Coding Knowledge Base for Physicians, Office staff, Medical Billers and Coders, including resources pertaining to HCPCS Codes, CPT Codes, ICD-10 billing codes, Modifiers, POS Codes, Revenue Codes, Billing Errors, Insurance Denials and Rejections.
Reply all
Reply to author
Forward
0 new messages