Thanks Jeff. That helps. Two follow-up questions:

1) Are there any dependencies for building an AdGroup? My sequence is
this:
a) pulled back mock user accounts (clientemail), b) build a campaign
for one of the emails. c) pulled back the campaignid that i just built
in b and d) attempted to build an AdGroup.

Any problems with this sequence?

2) Can you expand a little more on the AdGroup object part? I think
that's what I'm missing then. I am submitting the following nested
structure (in ColdFusion langauge) as a complex data type in the soap
request:

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

data = myvar.addAdGroup(AdGroup);

As you can see, there is really no treatment of AdGroup as an object.
Is this required?

Thanks again Jeff.



On Jan 7, 12:16 pm, AdWords API Advisor <[email protected]>
wrote:
> Hello,
>
>  The examples provided and the parameter descriptions in the
> developer's guide should be correct.
>
> Neither campaignId nor id are required to be set for the newData
> parameter (despite not being explicitly marked as nillable or with a
> minOccurs in the WSDL definition of the AdGroup complexType). For any
> true AdGroup object that corresponds to an existing ad group in
> AdWords, both of those fields will always be set, but not when the ad
> group is first being created.
>
> Cheers,
> -Jeff Posnick, AdWords API Team
>
> On Jan 7, 10:01 am, purdue512 <[email protected]> wrote:
>
> > Hi there.
>
> > Your XML example for the addAdGroup method in the AdGroup service
> > shows:
>
> >     <!-- Creates a new ad group given an existing campaign. -->
> >     <addAdGroup>
> >       <campaignID>INSERT_CAMPAIGN_ID_HERE</campaignID>
> >       <newData>
> >         <keywordMaxCpc>100000</keywordMaxCpc>
> >         <name>Sample Ad Group</name>
> >         <status>Enabled</status>
> >       </newData>
> >     </addAdGroup>
>
> > However, the v13 WSDL shows:
>
> > <element name="addAdGroup">
> > <complexType>
> > <sequence>
> > <element name="campaignID" type="xsd:int"/>
> > <element name="newData" type="impl:AdGroup"/>
> > </sequence>
> > </complexType>
> > </element>
>
> > and then for AdGroup:
>
> > <complexType name="AdGroup">
> > <sequence>
> > <element name="campaignId" type="xsd:int"/>
> > <element name="id" type="xsd:long"/>
> > <element name="keywordContentMaxCpc" nillable="true" minOccurs="0"
> > type="xsd:long"/>
> > <element name="keywordMaxCpc" nillable="true" minOccurs="0"
> > type="xsd:long"/>
> > <element name="maxCpa" minOccurs="0" type="xsd:long"/>
> > <element name="name" nillable="true" type="xsd:string"/>
> > <element name="proxyKeywordMaxCpc" nillable="true" minOccurs="0"
> > type="xsd:long"/>
> > <element name="siteMaxCpc" nillable="true" minOccurs="0"
> > type="xsd:long"/>
> > <element name="siteMaxCpm" nillable="true" minOccurs="0"
> > type="xsd:long"/>
> > <element name="status" nillable="true" minOccurs="0"
> > type="impl:AdGroupStatus"/>
> > </sequence>
> > </complexType>
>
> > So it would seem to me that campaignId and id are required in newdata.
> > However, your example for PHP and XML don't show that. They show
> > campaignId outside newdata and no mention of id at all.  Can you
> > please clarify for me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to