How to update Capaign Status ?

48 views
Skip to first unread message

jona...@garagecoders.net

unread,
Aug 24, 2015, 5:33:32 PM8/24/15
to AdWords API Forum
I`m using soapUI in order to mutate a campaign, I want to change the state of a campaign, from ENABLED to PAUSED, but the service is not working, maybe I'm missing a parameter or the campaign's  is incorrect, I don´t know, also I'm using objective c, so there is not an API to be easier the communication with the webServices.
I have added a screenshot in order to detect the error easier.

Thanks.

Cheers.

Anthony Madrigal

unread,
Aug 25, 2015, 10:10:44 AM8/25/15
to AdWords API Forum
Hi Jonathan,

In order to change your campaign status, the only fields you need to select with the CampaignService are id and status. I recommend removing any of the optional fields that you are not using.

Here is an example of how to update the Campaign status using our .Net library.

Cheers,
Anthony
AdWords API Team

jona...@garagecoders.net

unread,
Aug 25, 2015, 2:00:29 PM8/25/15
to AdWords API Forum
thank a lot, I'm going to make the necessary changes.

jona...@garagecoders.net

unread,
Aug 26, 2015, 10:54:02 AM8/26/15
to AdWords API Forum
Hi, I Have removed any other field, the only fields that I send to the server are Id and Status but something is wrong.

El martes, 25 de agosto de 2015, 9:10:44 (UTC-5), Anthony Madrigal escribió:

Josh Radcliff (AdWords API Team)

unread,
Aug 26, 2015, 11:27:33 AM8/26/15
to AdWords API Forum
Hi,

Have you verified that the OAuth credentials you are using in your request are for a user who has edit rights to the AdWords account?

Thanks,
Josh, AdWords API Team

jona...@garagecoders.net

unread,
Aug 26, 2015, 11:57:35 AM8/26/15
to AdWords API Forum
I'm using the developer token of my MMC Account and the clientCustomerId of the account that was selected, is it incorrect ? 

I'm developing and iOS APP so first I show the accounts that the mcc account has, when select one I get the clientCustomerId of that account.

Josh Radcliff (AdWords API Team)

unread,
Aug 26, 2015, 1:55:09 PM8/26/15
to AdWords API Forum
Hi,

The developer token you're using has no impact on which accounts your API requests can access or modify. That is determined entirely by the OAuth credentials you send in your request.

Did you generate your OAuth refresh token while logged in as a user with access to the AdWords account being accessed in your API request?

Thanks,
Josh, AdWords API Team

jona...@garagecoders.net

unread,
Aug 31, 2015, 12:57:19 PM8/31/15
to AdWords API Forum
Yes, I create mmy refresh token and add to the header os the request.

Josh Radcliff (AdWords API Team)

unread,
Aug 31, 2015, 4:30:15 PM8/31/15
to AdWords API Forum
Hi,

Although you added the OAuth token to your request, the important thing is that the token came from a refresh token that was generated by a user who has access to the AdWords account. Could you let me know which client customer ID you are trying to access (xxx-xxx-xxxx) and which user you were logged in as when you clicked Accept to generate the refresh token? You can send that information only to me by clicking Reply privately to author on this message.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages