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 <a...@hubshout.com> 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to 
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to