Google Groups Home
Help | Sign in
Problems changing ad text of an existing ad
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Kevin  
View profile
 More options Jun 30, 1:01 pm
From: Kevin <ke...@properprice.co.uk>
Date: Mon, 30 Jun 2008 10:01:25 -0700 (PDT)
Local: Mon, Jun 30 2008 1:01 pm
Subject: Problems changing ad text of an existing ad
I am trying to change the ad text in an existing ad, but I keep
getting errors and I am not sure what I am doing wrong.

The error I am getting is Code:73, The request xml was invalid. The
xml it displays in the error however is the correct ad text that I
want!

The code I am using is right out of the manual

$adObject = createAdObject($adgroupId, $adId );
$adObject->setDescription2("New text");

Both $adgroupId and $adId are the correct id's.

Any suggestions on things to try?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin  
View profile
 More options Jun 30, 3:10 pm
From: Kevin <ke...@properprice.co.uk>
Date: Mon, 30 Jun 2008 12:10:53 -0700 (PDT)
Local: Mon, Jun 30 2008 3:10 pm
Subject: Re: Problems changing ad text of an existing ad
An update.

My problem wasn't the code I was using but the text I was trying to
send to update the ad.

After some testing, I have found that if the ad contains a £ sign, it
will fail, even if it is not on the line you are amending. I tried
substituting for the html entity ( &pound; ) but this sent it straight
through to the ad without changing it back to the £.

So my question is how do I edit or add a new ad that contains a £ sign?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin  
View profile
 More options Jun 30, 3:34 pm
From: Kevin <ke...@properprice.co.uk>
Date: Mon, 30 Jun 2008 12:34:02 -0700 (PDT)
Local: Mon, Jun 30 2008 3:34 pm
Subject: Re: Problems changing ad text of an existing ad
I did find a solution that works if it helps anyone.

In nusoap.php around line 611 there is a comment
 // Begin modification for APIlity

After that I put:
       $body = str_replace("Â", "&#163;", $body);
       $body = str_replace("£", "&#163;", $body);
       $body = str_replace("œ", "&#163;", $body);

This allowed me to both create new ads and edit existing ads that have
a £ sign in them.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Kornea  
View profile
 More options Jun 30, 4:31 pm
From: "Vladimir Kornea" <vkor...@delivery.com>
Date: Mon, 30 Jun 2008 16:31:25 -0400
Local: Mon, Jun 30 2008 4:31 pm
Subject: RE: Problems changing ad text of an existing ad
Kevin,

This might be relevant:

http://groups.google.com/group/adwords-api-php/msg/4345563633680a25

Vladimir Kornea
Delivery.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google