Problem with retrieving campaigns and customers via Google Ads API

62 views
Skip to first unread message

Andrzej Krupiński

unread,
Aug 2, 2019, 10:22:55 AM8/2/19
to AdWords API and Google Ads API Forum
Hi,

I have the whole hierarchic network of approx. 50 accounts and the campaigns associated with them. But I have a severe problems with retrieving them,

1) I can't get the full list of accessible customers. I'm using previously created CustomerServiceClient:
$this->customerServiceClient->listAccessibleCustomers();
But I receive only two of them (the main manager-account and one of its "child-accounts").

2) I can't get the campaigns visible for the accounts easily accessible in the Google Ads web interface.
I use something like this:
SELECT
    campaign
.id,
    campaign
.name,
    campaign
.status,
    customer
.id,
    metrics
.impressions,
    metrics
.clicks,
    metrics
.average_cpc,
    metrics
.cost_micros
FROM campaign
WHERE segments
.date DURING LAST_30_DAYS
    AND customer
.id = XXXXXXXXX
with previously generated GoogleAdsClientBuilder and receive campaigns only for ONE customer while the rest of them is totally unaccessible.

I totally don't know what's going on and think that it could be something wront with the accounts settings that should be changed in the web interface.
Please help.

Google Ads API Forum Advisor Prod

unread,
Aug 2, 2019, 4:26:38 PM8/2/19
to andrzej....@profitroom.com, adwor...@googlegroups.com
Hi Andrze,

Can you please provide me your MCC CID through reply privately so I can take a look at the issue with 1)? 

For your second issue, reports can only be called from the client account level.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5001UEHecP:ref

Andrzej Krupiński

unread,
Aug 13, 2019, 4:50:38 AM8/13/19
to AdWords API and Google Ads API Forum
Hi,

Thanks for your response. Due to the dynamic business situation, this is not considered as a problem anymore.

Best,
Andrzej
Reply all
Reply to author
Forward
0 new messages