Hi Justinas,

Yes, SET operation for AdGroupAdService is supposed to use for changing the 
status of ads only.
If you omit the setting of status, *[RequiredError.REQUIRED @ 
operations[0].operand.status]* should be thrown.

If you happen to be able to set other fields, like displayUrl or finalUrls, 
could you please send the SOAP logs to us via *Reply privately to author*?

Cheers,
Thanet, AdWords API Team

On Wednesday, March 9, 2016 at 6:22:58 AM UTC+9, Justinas Ringaila wrote:
>
> Hi,
> I'm trying to edit ad. According to your documentation 
> https://developers.google.com/adwords/api/docs/reference/v201601/AdGroupAdService.Ad
>  
> it is not possible to do so.
> As it was stated there I need to remove the ad and add new one
>
> Despite the fact I tried to do it in this way;
>             AdGroupAd textAdGroupAd = new AdGroupAd();
>             textAdGroupAd.adGroupId = adGroupId; //Id of existing ad group
>             textAdGroupAd.ad = textAd; //Id of  existing ad that I want to 
> be altered
>
>             // Create the operation.
>             AdGroupAdOperation operation = new AdGroupAdOperation();
>             operation.@operator = Operator.SET;
>             operation.operand = textAdGroupAd;
>
> And actually it was a success. In history I see that the ad was removed 
> and added a new one. As I understood the removal process was made under the 
> hood.
> Is it ok to do so? Or I'm misusing the API?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/4ac2e64a-9632-42cd-bcf7-0b61cd6b6ff5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How ... Justinas Ringaila
    • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
      • ... Justinas Ringaila
        • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
          • ... Justinas Ringaila

Reply via email to