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
-~----------~----~----~----~------~----~------~--~---