Generate text ads with Flag "mobile" via the AdWords API

70 views
Skip to first unread message

c...@clickbits.de

unread,
Jun 26, 2014, 5:41:33 AM6/26/14
to adwor...@googlegroups.com
Hi all,

I am using the adwords api to generate campaigns, adgroups, keywords and ads and it works fine.
But now I will generate Ads which are optimized for mobile devices.

In the website in www.adwords.google.com I can click on a checkbox to mark the ad as "optimize for mobile devices".
Then the Preview of the Ad changes from normal text ad to an ad shown in a mobile phone.
So I will set this Flag via the API to generate Ads which are optimized for mobile devices.


Has anybody a solution for this? I use the PHP Library in Version v201402 and the is no example for this problem.



Greetings from germany

c...@clickbits.de

unread,
Jun 26, 2014, 6:06:46 AM6/26/14
to adwor...@googlegroups.com
I think I am searching for the option "device Preference"?!
But I don't know if this is the right way and I don't know where I can set this

c...@clickbits.de

unread,
Jun 26, 2014, 8:37:46 AM6/26/14
to adwor...@googlegroups.com
I am sorry for my third post, but I think I found a solution for my problem.
While creating my ad I set the attribute $textad->devicePreference = 30001;
Then in the browser in www.adwords.google.com there is an ad with the flag "optimized for mobile".

I think it is ok, isn't it? Why the value of 30001? Are there other values possible?

Michael Cloonan (AdWords API Team)

unread,
Jun 26, 2014, 9:04:40 AM6/26/14
to adwor...@googlegroups.com
Hello,

I believe that this field uses the criteria IDs for platforms, which shows mobile as having an ID of 30001. I'm glad you were able to figure out the issue!

Regards,
Mike, AdWords API Team

rocs...@gmail.com

unread,
Oct 24, 2014, 11:44:12 AM10/24/14
to adwor...@googlegroups.com
Hello,

I have almost the same issue: I would like to download ad from service, modify url and put it back to system. I am doing it by ADD/REMOVE techniques and everything is fine but the 'Mobile'
flag - it disappears after operation because AdGroupAdService service gives me empty "devicePreference" field.

Could you please suggest me some workaround for this issue ?

Thanks in advance,
Sergey.

Michael Cloonan (AdWords API Team)

unread,
Oct 29, 2014, 1:20:02 PM10/29/14
to adwor...@googlegroups.com
Hello Sergey,

Can you respond to me privately with an example SOAP request response where you're trying to fetch the devicePreference but it's coming back blank?

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