select account from MCC

37 views
Skip to first unread message

Rodrigo Munoz

unread,
Dec 16, 2014, 7:07:58 AM12/16/14
to adwor...@googlegroups.com
Hi
I already connect my MCC accont through API, I can get reports without any problems.

But when I try to call any mutate service, like change adgroup status, I have that error:

AdwordsApi::V201406::AdGroupService::ApiException: [EntityNotFound.INVALID_ID @ operations[0].operand.id; trigger:'AdGroupId: 10496509077']

I'm thinking that is because I need to select what account I want to modify, but I can't find where.

Could someone help me on that, I'm definetly frustrated :(

Danial Klimkin

unread,
Dec 16, 2014, 8:16:56 AM12/16/14
to adwor...@googlegroups.com
Hello Rodrigo,


You need to send the correct customer ID in the clientCustomerId SOAP header as per:



-Danial, AdWords API Team.

Rodrigo Munoz

unread,
Dec 16, 2014, 9:53:06 AM12/16/14
to adwor...@googlegroups.com
Hi Danial, Thanks a lot for yhisour quick response.

I'm working on RoR.

Do you know how can I modify the clientCustomerId SOAP header in rails??

I'm trying with:

credentials = adwords_api.credential_handler()
credentials.set_credential(:client_customer_id, "173-868-XXXX")

But I can see that the header do not modified, and still keeping my MCC ID

:(

Danial Klimkin

unread,
Dec 16, 2014, 10:48:09 AM12/16/14
to adwor...@googlegroups.com
How do you make the call?


-Danial.

Rodrigo Munoz

unread,
Dec 16, 2014, 11:47:44 AM12/16/14
to adwor...@googlegroups.com
Hi Daniel
I alredy solve it with your tip. :)
I'll post the call for others...

def adwords_api_for (account_id)
        api = AdwordsApi::Api.new(Settings[:adwords_api])
        api.credential_handler().set_credential(:client_customer_id, account_id)
        return api
      end

Thnks a lot for your help
Reply all
Reply to author
Forward
0 new messages