Hi Tom, DevicePreference works only for high end mobile devices, so the ID you should send to server is 30001. If you don't want your ads to have any mobile preference, you needn't provide any devicePreference field.
Cheers, Anash P. Oommen, AdWords API Advisor. On Monday, December 16, 2013 5:50:54 AM UTC-5, tomfl...@gmail.com wrote: > > Hi, > > > We are trying to add a device preference to our campaigns without > success-We are adding the field 'devicePreference' when we 'add' our > textad-please advise on the correct way to upload a device preference for a > specific ad? > > > _operations = [ > > { > > 'operator': 'ADD', > > 'operand': { > > 'xsi_type': 'AdGroupAd', > > 'adGroupId': adgroupid[-1], > > 'ad': { > #'devicePreference' > :'??', > > 'xsi_type': 'TextAd', > > 'devicePreference': '30000', > > 'url': 'http://www.example.com', > #conversion_link > > 'displayUrl': url, > > 'description1': description1, > ###'Visit the Red Planet in style.', > > 'description2': description2, > ###'Low-gravity fun for everyone!', > > 'headline': headline > > }, > > # Optional fields. > > 'status': 'PAUSED' > > } > > # If needed, you could specify an exemption request here. > > # 'exemptionRequests': [{ > > # # This comes back in a PolicyViolationError. > > # 'key' { > > # 'policyName': '...', > > # 'violatingText': '...' > > # } > > # }] > > }] > > Many Thanks, > > Tom. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.