It looks like you stated it on on the contrary on the first post. Anyway.
Lets stick to scenario that it is necessary to remove ad there is no way to
update it except the status.
What I meant by saying "loose any kind of data" that when getting ads I
need to set which fields should be returned like:
fields = new string[]
{
AdGroupAd.Fields.Status,
TextAd.Fields.Headline,
TextAd.Fields.Description1, TextAd.Fields.Description2,
TextAd.Fields.DisplayUrl, TextAd.Fields.CreativeTrackingUrlTemplate
},
On Wednesday, 9 March 2016 11:42:02 UTC+2, Thanet Knack Praneenararat
(AdWords API Team) wrote:
>
> Hello Justinas,
>
> As you've mentioned, ads can be created and removed only. They can be
> modified via SET (except for their statuses).
> Once your ads are removed and created, all your stats belonging to those
> ads *will not* go to the new ads.
> However, you can still access those old ads' stats by specifying the
> predicate STATUS
> <https://developers.google.com/adwords/api/docs/reference/v201601/AdGroupAdService.AdGroupAd#status>
>
> = DISABLED in case of reporting.
>
> Cheers,
> Thanet, AdWords API Team
>
> On Wednesday, March 9, 2016 at 6:36:13 PM UTC+9, Justinas Ringaila wrote:
>>
>>
>> Strangely I was not able to reproduce it today.... By the way any
>> suggestions how remove and create ads without risking to loose any kind of
>> data? I'm trying to set trackingUrlTemplate
>>
>> On Wednesday, 9 March 2016 04:40:35 UTC+2, Thanet Knack Praneenararat
>> (AdWords API Team) wrote:
>>>
>>> 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/9f375d77-d762-4e56-9fe7-b35c1720e3ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.