Hey there,
it's not possible to change the content of a text ad after creation (except 
by using AdParams, which offer functionality to change numerical values in 
the ad text). You'll have to delete the old ad and create a new one with 
the desired attributes.
Cheers,
Dorian

On Sunday, April 6, 2014 7:54:59 PM UTC+2, Игорь Елисеев wrote:
>
> Hello!
> I tried to change URL in my Ad, but it doesnt work:
>
>   $adGroupService =  $user->GetService('AdGroupAdService', 
> $adwords_version);
>
>   $adGroupAd = new AdGroupAd();
>   $adGroupAd->adGroupId = $adGroupId;
>
>    $ad = new Ad();
>    $ad->id = $adId;
>    $ad->Url = 'http://new_url/;
>
>    $adGroupAd->ad = $ad;
>    $adGroupAd->status = 'ENABLED';
>
>   $operation = new AdGroupAdOperation();
>   $operation->operand = $adGroupAd;
>   $operation->operator = 'SET';
>
>   $operations = array($operation);
>
>   $result = $adGroupService->mutate($operations);
>
> Status changed to PAUSED as example, its okay, but Url not. Help pls!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/d/optout.
  • Ad Update Игорь Елисеев
    • Re: Ad Update Dorian Kind

Reply via email to