Web service operation "addAdGroup" could not be found

4 views
Skip to first unread message

purdue512

unread,
Jan 6, 2009, 5:59:28 PM1/6/09
to AdWords API Forum
I'm getting Web service operation "addAdGroup" could not be found back
from the AdGroupService. I am submitting the following structure (with
nested structure) - which looks find to me when I dump it.

AdGroup = StructNew();
AdGroup.campaignID = '3943';
AdGroup.newData = StructNew();
AdGroup.newData.keywordMaxCpc = '100000';
AdGroup.newData.name = 'New Ad Group Name';

data = myvar.addAdGroup(AdGroup);

Also - My headers are working fine on campaign operations, so I don't
think it's that.

Any help?

purdue512

unread,
Jan 7, 2009, 9:25:48 AM1/7/09
to AdWords API Forum
Can anyone help on this? I've dumped in several days and am totally
stuck here. Thx

purdue512

unread,
Jan 7, 2009, 10:41:14 AM1/7/09
to AdWords API Forum
Now I'm getting even more suspicious. I ran the example PHP code for
addAdGroup and it does not seem to run.

Can anyone confirm that the addAdGroup method in the AdGroup service
is running in Sandbox?

Thx

AdWords API Advisor

unread,
Jan 7, 2009, 2:12:54 PM1/7/09
to AdWords API Forum
Hello,

If you're writing your code in PHP, have you considered using the
APIlity client library? It would probably end up being simpler than
implementing everything yourself based on the samples.

http://google-apility.sourceforge.net/

Based on your description of your initial error, if you're sure that
your SOAP request XML looks correct, it might be that your HTTPS POST
is being sent to an incorrect SOAP endpoint. Each AdWords API service
has a different SOAP endpoint, and when posting to the Sandbox's
AdGroupService, for instance, you should ensure that the HTTPS request
is being sent to https://sandbox.google.com/api/adwords/v13/AdGroupService
(or v12 if you're using that).

Cheers,
-Jeff Posnick, AdWords API Team
Reply all
Reply to author
Forward
0 new messages