AdgroupAdRotationMode discrepancy

38 views
Skip to first unread message

Julian Canada

unread,
Sep 3, 2019, 4:26:13 PM9/3/19
to AdWords API and Google Ads API Forum
Hi! We are having a discrepancy between the Google Adwords UI and the Google Adswords v201908 API.
 
According to this link https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService.AdGroupAdRotationMode, there are two possible values to be set. However, in the UI we have another option, which is Use campaign setting.

What option do we have to send to the API in order to achieve the same Use campaign setting functionality as it is in the UI? 


Screen Shot 2019-09-03 at 13.20.56.png


Google Ads API Forum Advisor Prod

unread,
Sep 5, 2019, 5:45:48 AM9/5/19
to adwor...@googlegroups.com
Hi Julian,

Thanks for posting your concern.

In order to change ad rotation setting of ad group by using the API, you need to clear the adGroupAdRotationMode setting altogether. This means sending an AdGroup SET operation that looks like this in SOAP:
 
<operator>SET</operator>
    <operand>
     <id>12345</id>
     <campaignId>567890</campaignId>
     <campaignName>Sample campaign name</campaignName>
     <name>Sample ad group name</name>
     <status>ENABLED</status>
     <adGroupAdRotationMode>null<adGroupAdRotationMode/>
    </operand>

Also, depending on the client library, you can effectively do this by setting adRotationMode field to null. For example, in Java this looks like this:
rotationMode.setAdRotationMode(null);

Let me know if you have further questions.

Regards,
Ejay
Google Ads API Team

ref:_00D1U1174p._5001UHFZBG:ref
Reply all
Reply to author
Forward
0 new messages