Run BatchJobService on Manager Account

12 views
Skip to first unread message

Marco Natalini

unread,
Sep 26, 2019, 5:52:02 AM9/26/19
to AdWords API and Google Ads API Forum
Hello AdWords API Team,

I'm trying to run BatchJobService using ManagerAccount id.
I've a strange behaviour. 

I create JobService using a session with manager account id

$sess = $adWordsSessionBuilder->withClientCustomerId("MANAGER_ACCOUNT_ID")->build();
$batchJobService = $adWordsServices->get($sess, BatchJobService::class);

then I submit a set of operation over various account managed by this manager account.

Operations are adGroups bidAdjustment.

JobService after polling return me always an error for all operations, telling me:
 
AdGroupId: xxxxxxxxxxxx -> EntityNotFound.INVALID_ID 

The strange  thing is that all operation are executed instead.

Do I do something wrong?

Thanks a lot
Marco

Google Ads API Forum Advisor Prod

unread,
Sep 26, 2019, 6:39:04 AM9/26/19
to adwor...@googlegroups.com
Hi Marco,

Depending on the transaction, the BatchJobService should mainly be used to make calls against client accounts and not MCC accounts since most of the supported operations are from services which accepts only a client account ID in the request header.

Also, the EntityNotFound.INVALID_ID may have been triggered since the system could not find the ad group ID in the MCC account since ad group ID association is validated against a client account. However, so I can indeed verify this and to further investigate, could you provide the complete logs and send it to me privately using the Reply privately to author option?

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UHI2IT:ref
Reply all
Reply to author
Forward
0 new messages