Re: Mobile Device criterion targeting on a campaign

2019-08-22 Thread Google Ads API Forum Advisor Prod
Hello James,

Your understanding about excluding the criteria is right. You may use the 
NegativeCampaignCriterion or set the isnegative field to true. However, please 
note that it is currently not possible to exclude the MobileDevice criteria at 
the campaign level. The Criteria Usage table will be helpful to identify as to 
which criteria can be targeted or excluded.

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UEJSqY:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/rRSdq0PWNH2Z00lNR8hI5nSO6pGtMdrqYNtQ%40sfdc.net.


Re: Mobile Device criterion targeting on a campaign

2019-08-22 Thread James Matthews
HI Bharani, 

Thanks for the explanation and help. I have had success using  
ConstantDataService.getMobileDeviceCriterion() 

  
to get the ids and have been able to add mobile devices to a campaign.
I have a further question. How do i negatively set mobile devices on a 
campaign. (to exclude these devices from a campaign). The isNegative Field 
states it is readonly, is there a way to set this? 
Currently i can only set a mobile device onto a campaign where isNegative 
is false. Am i correct in assuming the isNegative field will target these 
mobiles if false and exclude them if true? 

Example of response below showing isNegative as false:


2087725659
false
http://www.w3.org/2001/XMLSchema-instance; xsi:type="MobileDevice">
613251
MOBILE_DEVICE
MobileDevice
8079
Alcatel
DEVICE_TYPE_TABLET
Android

ACTIVE

CampaignCriterion




Kind Regards, 
James



On Tuesday, August 20, 2019 at 6:33:02 PM UTC+1, adsapiforumadvisor wrote:
>
> Hi James, 
>
> I'm Peter's colleague addressing your concern as he is out of office. You 
> will be able to use the ConstantDataService.getMobileDeviceCriterion() 
> 
>  
> to pull the specific criteria IDs for Mobile devices. You will need to use 
> the Criteria Id for the corresponding mobile device in your request. Could 
> you please give this a try?
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UEJSqY:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/db7072e6-aec8-436a-8778-386a4f950446%40googlegroups.com.


Re: Mobile Device criterion targeting on a campaign

2019-08-20 Thread Google Ads API Forum Advisor Prod
Hi James,

I'm Peter's colleague addressing your concern as he is out of office. You will 
be able to use the ConstantDataService.getMobileDeviceCriterion() to pull the 
specific criteria IDs for Mobile devices. You will need to use the Criteria Id 
for the corresponding mobile device in your request. Could you please give this 
a try?

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UEJSqY:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/atdDD0PWJQ2D00xkoC_t-1RC-KmNhfjg9DBw%40sfdc.net.


Re: Mobile Device criterion targeting on a campaign

2019-08-20 Thread James Matthews
Hi Peter, 

Thank you for the feedback and help. Unfortunately even when using an ADD 
operation the error returned is still stating a id must be set. 

Request and response included below.



http://schemas.xmlsoap.org/soap/envelope/;
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>


XXX-XXX-
REDACTED
unknown (AwApi-PHP, googleads-php-lib/42.0.0, 
PHP/7.3.7-1+ubuntu18.10.1+deb.sury.org+1)
false
false





ADD

2087725659

Samsung J5 Prime (SM-G570F)








http://schemas.xmlsoap.org/soap/envelope/;>

https://adwords.google.com/api/adwords/cm/v201809;>
0005908c720423fb02ab42cca40bd386
CampaignCriterionService
mutate
1
143




soap:Client
[RequiredError.REQUIRED @ 
operations[0].operand.criterion.id]

https://adwords.google.com/api/adwords/cm/v201809;>
[RequiredError.REQUIRED @ 
operations[0].operand.criterion.id]
ApiException

http://www.w3.org/2001/XMLSchema-instance; xsi:type="RequiredError">
operations[0].operand.criterion.id


operations
0


operand


criterion


id


RequiredError.REQUIRED
RequiredError
REQUIRED







I have tried setting the id to 0 and null and give errors of out of range 
and the above XML response, respectively. Do you have any further ideas as 
to what may be going wrong? 

Kind Regards,
James

On Monday, August 19, 2019 at 7:14:19 AM UTC+1, adsapiforumadvisor wrote:
>
> Hi James,
>
> Apologies as we currently do not have an example specifically tailored to 
> your requirement. However, you are correct with the example that you are 
> referring to on how to add targeting criteria to a specific campaign. If 
> you wish to add these in bulk, I would recommend that you also check out 
> our batch processing 
>  guide 
> (since this supports the CampaignCriterionOperation 
> )
>  as 
> to how.
>
> Moving forward to your issue, the ID 
> 
>  
> field should only be required when you are passing a SET or REMOVE 
> operation and the said field should not be required for ADD operations. 
> That being said, could you provide the complete SOAP request and response 
> logs so I can further investigate?
>
> You may send your reply using the *Reply privately to author* option.
>
> Thanks and regards,
> Peter
> Google Ads API Team
>
> ref:_00D1U1174p._5001UEJSqY:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fec255d7-f947-41da-ac7c-2f10ce3e2dd3%40googlegroups.com.


RE: Mobile Device criterion targeting on a campaign

2019-08-19 Thread Google Ads API Forum Advisor Prod
Hi James,

Apologies as we currently do not have an example specifically tailored to your 
requirement. However, you are correct with the example that you are referring 
to on how to add targeting criteria to a specific campaign. If you wish to add 
these in bulk, I would recommend that you also check out our batch processing 
guide (since this supports the CampaignCriterionOperation) as to how.

Moving forward to your issue, the ID field should only be required when you are 
passing a SET or REMOVE operation and the said field should not be required for 
ADD operations. That being said, could you provide the complete SOAP request 
and response logs so I can further investigate?

You may send your reply using the Reply privately to author option.

Thanks and regards,
Peter
Google Ads API Team
ref:_00D1U1174p._5001UEJSqY:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0sqwF0PWGZZJ00RPu2DGX3T5mSQFcm5gwACQ%40sfdc.net.


Mobile Device criterion targeting on a campaign

2019-08-18 Thread James Matthews
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.