Hi, 

I am currently trying to add specific mobile device targeting to many large 
campaigns. The web based interface on adwords means this has to be manually 
done for each campaign and will take a very long time. 

I have looked into adding the mobile device targeting via PHP and using the 
the Adwords API library but have no yet had any success.

>From my understanding i will want to use the 
Google\AdsApi\AdWords\v201809\cm\MobileDevice class to do this and the 
/AdWords/v201809/Targeting/AddCampaignTargetingCriteria.php class could 
serve as a base for this? 

I have managed to send a request to google to fetch a device by name. 

e.g. 
$mobile = new MobileDevice();
$mobile->setDeviceName('Samsung J5 Prime (SM-G570F)');
        
$campaignCriteria[] = new CampaignCriterion($campaignId, null, $mobile);

... 
etc


The response fails and states that i need to set the device id, however i 
have no been able to find any resource or api call that references these 
id's? 

The webpage here lists lots of differnt criterion id's but none for mobile 
devices. 
https://developers.google.com/adwords/api/docs/appendix/codes-formats#platforms

How should i do this?

Regards,
James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/54690992-31a7-4714-b043-caaa7de5219f%40googlegroups.com.

Reply via email to