Adwords API - Create Ad with feed dynamic URL

155 views
Skip to first unread message

Maurício Bento

unread,
Sep 29, 2015, 8:50:13 AM9/29/15
to AdWords API Forum

Hi Team,

 

I'm developing an app for my company to improve the exhibition of ads based on my Google Shopping XML Feed.

 

We are already creating campaign, adgroup, keywords, bid strategies, importing data from XML feed and creating Ads.

 

The limitation we are having is that we cannot have a dynamic URL on the FinalURL field, this way instead of having one ad for the 1000 products, we would need to have 1000 ads, as we cannot use the dynamic flags.

This limitation is described here:

https://developers.google.com/adwords/api/docs/guides/ad-customizers

    You can put strings, prices, numbers, and even a countdown to a specific date/time in your ad. Replacements can occur in ad titles and description lines, but you cannot perform replacements using this feature on the display or final URLs.

 

This is how it would be the ideal to create an Ad with the API

$textAd1 = new TextAd();
$textAd1->headline = sprintf('{=%s.Name}', $feedName);
$textAd1->description1 = sprintf('This is our best offer of {=%s.Preco} now!', $feedName);
$textAd1->description2 = sprintf('Run as this is ending soon!',
$feedName);
$textAd1->finalUrls = sprintf('%s{=%s.Url}', $website, $feedName);
$textAd1->displayUrl = $website;

 

Where $feedName is the feed from Google checkout.

 

One way which I think I could solve this is use the trackingTemplates and develop a system to map the destination URLs, but still it would mean a huge effort.

 

For those who ended up having this issue, do you foresee a solution for this?

 

Thanks and Regards,

 

Umesh Dengale

unread,
Sep 30, 2015, 9:32:13 AM9/30/15
to AdWords API Forum
Hello,

In above case, the Ad customizer can't be used and using tracking URL template would be more appropriate. Please check out our upgraded URL document for more details.

Cheers,
Umesh, AdWords API Team.

Maurício Bento

unread,
Oct 1, 2015, 1:09:41 PM10/1/15
to AdWords API Forum
Hi Umesh,

Thanks for the inputs.

In this regards, I believe there is no way that this can be done dinamically, right?

I know I'm going a bit too far in this, but in this sense the only approach I can see is to:
 -> Instead of having one dynamic ad for all products

I need to go with the approach
 -> One ad per product.

Final question, are there any restrictions by Google Adwords to have like 1.000 ads created under the same ad group?

Thanks and regards,

Umesh Dengale

unread,
Oct 5, 2015, 9:22:45 AM10/5/15
to AdWords API Forum
Hello,

You could refer to this page which describes how to manages ads, adgroups and campaigns in your account. In the AdWords, the limit of the number of active or paused ads per account is 4 million.

Regards,
Umesh, AdWords API Team.

MCC Test

unread,
Dec 30, 2015, 11:55:42 PM12/30/15
to AdWords API Forum
Hello ,

I am having a same exact situation, I have 10k products and don't want to create ads for each 10k products, So I used ad customizer but then one big issue I can't feed dynamic Lanfing Page URL, so that's a big issue over here.

Is there any solution or work around for this??

Thanks,
Ronak Shah

Maurício Bento

unread,
Jan 4, 2016, 7:40:15 AM1/4/16
to ppcte...@gmail.com, AdWords API Forum
Hi Team,

The issue I had was that the logic I was running was fetching non-active ad groups, so I didn't have the expected behavior.

After changing the logic instead of foreachs inside each one and another and using something like that:
var agSelector = AdWordsApp.adGroups()
    .withCondition('CampaignStatus = ENABLED')
    .withCondition('AdGroupStatus = ENABLED')
    .withCondition('Status = ENABLED');

I was able to obtain the result I wanted.

Best regards,



--
Maurício Bento Ghem
RPBR - Soluções Web
Cel:
 +55 51 8146-8553

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/Vmv6-rr1KYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@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/463d3352-9fd0-4159-9008-790cab4fa827%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

MCC Test

unread,
Jan 4, 2016, 9:29:05 AM1/4/16
to AdWords API Forum, ppcte...@gmail.com
Hello Maurício,

How come this solution can work for feeding dynamic Landing Page URL??

Let me explain you my situation here again I have a list of 10K Products listed in an excel sheet with product name, price, product landing page URL  and target keyword.So I tried creating the Ad customizer feeding dynamic values with target keyword but Final URL can't be feeded dynamically so how can we achieve this via API I don't want to create 10K Ads I just need to create one Ad which will feed dynamic values.

Appreciate Your help!!

Thanks,
Ronak Shah

Umesh Dengale

unread,
Jan 4, 2016, 1:45:09 PM1/4/16
to AdWords API Forum, ppcte...@gmail.com
Hi Ronak,

The Ad customizer could be used to inject dynamic information into your ads(e.g. strings, prices, numbers, and even a countdown to a specific date/time), but you cannot perform replacements using this feature on the final URLs. Please check out the Ad Customizers guide for more details.

Thanks,
Umesh, AdWords API Team.

MCC Test

unread,
Jan 4, 2016, 2:06:23 PM1/4/16
to AdWords API Forum
Hello Umesh,

Thank you for your response. I do know very well that Ad customizer has no replacement for final url, so in this case do I need to create 10,000 ads instead of creating just one ad.Definitely I cannot send users to static final url, I need to land them to specific product page.Can we make use of tracking templates here, something like this "http://www.example.com/{=ProductFeed.urlpath}" and setting final url as "http://www.example.com/"

As I guess when any ad is clicked first of all tracking template is called so will this work? I definitely do not want to create 10k ads so trying to find if it can be done by one dynamic ad.

Looking for best approach on this.

Thanks,
Ronak Shah

Michael Cloonan (AdWords API Team)

unread,
Jan 4, 2016, 3:08:00 PM1/4/16
to adwor...@googlegroups.com
Hello,

This seems to be the same question as we're working on here: https://groups.google.com/forum/#!topic/adwords-api/5nC4yaNPQpo

Let's use that linked thread for this issue instead of this one.

Thanks,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages