Re: adServingOptimizationStatusSpecified set to True when getting Campaigns

2018-03-07 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Trevor,

Thanks for explaining your scenario. It seems that this issue is more on 
the .NET client library as you mentioned that the C# object 
has adServingOptimizationStatusSpecified field which is set to true 
automatically, and this makes your request fail since if you are updating a 
field in your campaign, you are not supposed to include 
the adServingOptimizationStatus field. You can post this concern here 
 as the library 
owners can provide further assistance in regards to this.

Also, if your main goal is to update different fields in your campaign, I 
recommend that you only include the fields that you wish to update so the 
request won't fail. You can refer to this example 

 which 
includes the fields that can be updated.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0b0fc288-27ba-4c30-b93e-5356a2b9d75b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: adServingOptimizationStatusSpecified set to True when getting Campaigns

2018-03-07 Thread Trevor Sanders

I'm not sure I made the issue clear with my original post. I am using the 
AdWords C# SDK 

 to 
get and modify campaign objects from the API. These are the steps I'm 
taking, and the issue I'm having:

   - Get a campaign by ID using the CampaignService.get(Selector) method.
   - This returns a C# Campaign object
  - By default the object has the field adServingOptimizationStatus set 
  to OPTIMIZE.
  - The C# object *also *has an adServingOptimizationStatusSpecified 
  field. This is set to TRUE automatically.
   - If I make changes to* different *fields on the Campaign, and then call 
   CampaignService.mutate(operation[]), I get the error 
   CANNOT_SET_AD_ROTATION_MODE.
   - As you said, the adServingOptimizationStatus field is read only as of 
   v201710, so if the adServingOptimizationStatusSpecified field is set to 
   TRUE, the operation fails.
   - As a work-around, whenever I get a campaign from the API, I have to 
   set adServingOptimizationStatusSpecified on the C# Campaign object to FALSE 
   before doing anything else.

It seems like this is pretty clearly a problem with the dotnet lib. 

Thanks,
Trevor

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/398f84ae-e3ff-4615-a1fb-0fa2a3b44888%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: adServingOptimizationStatusSpecified set to True when getting Campaigns

2018-03-05 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Trevor,

I could not see the adServingOptimizationStatusSpecified field in the 
campaign level, only the adServingOptimizationStatus 

 field, 
and is not a Boolean type. This said, can you provide your complete SOAP 
request and response logs that shows your scenario via *Reply privately to 
author* so I can further check?

Also, in regards to adServingOptimizationStatus field, as you may know, 
starting from v201710, this field is now a read only field (as you can see 
here 
)
 
and will default to OPTIMIZE during campaign creation. So in getting the 
campaign with this field, it will return its default value.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c8d5ae54-fbd2-44aa-98c1-631348af629c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


adServingOptimizationStatusSpecified set to True when getting Campaigns

2018-03-05 Thread Trevor Sanders
When updating to v201802, I came across a migration issue that is 
associated with v201710. I am using the dotnet client library to get 
campaigns from the API, perform some updates to them, and make mutate 
requests. However, although I am not setting AdServingOptimizationStatus 

 (which 
is deprecated at the campaign level), the campaigns automatically come back 
from the API with AdServingOptimizationStatusSpecified set to true. This 
needs to be set to false when reading any campaign in order to 
avoid CANNOT_SET_AD_ROTATION_MODE errors.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f5380d5c-b529-4858-8891-b2d1a4205d68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.