Hi Guys, 

Newbie here in integrating adwords API. 

I'm trying to create a Campaign with Ad rotation set to "Do not optimise. 
Rotate ads indefinitely". Code excerpt below (.Net) based on the docs 
AdServingOptimizationStatus 
(v201809) 
<https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.AdServingOptimizationStatus>


                var campaign = new Google.Api.Ads.AdWords.v201809.Campaign
                {
                    name = name,
                    advertisingChannelType = channelType,
                    
                    biddingStrategyConfiguration = new 
BiddingStrategyConfiguration
                    {
                        biddingStrategyType = 
BiddingStrategyType.MANUAL_CPC,
                        biddingScheme = new ManualCpcBiddingScheme
                        {
                            enhancedCpcEnabled = false
                        },
                        biddingStrategySource = 
BiddingStrategySource.CAMPAIGN
                    },

                    // Ad Rotation
                    adServingOptimizationStatus = 
AdServingOptimizationStatus.ROTATE_INDEFINITELY,
                    adServingOptimizationStatusSpecified = true,
                    ...
                }

.. but I'm getting this error message: 

Setting ad rotation mode for a campaign is not allowed. Ad rotation mode at 
campaign is deprecated.. (Error: CampaignError.CANNOT_SET_AD_ROTATION_MODE, 
FieldPath: operations[0].operand.adServingOptimizationStatus, Trigger: )

Can you guide me guys on how to properly set the Ad rotation set to "Do not 
optimise. Rotate ads indefinitely"?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/04c81805-ffac-413c-9612-e4243831b263%40googlegroups.com.

Reply via email to