SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
Campaign Targeting
Changes
Fine-Tuning Your Campaigns
Topics
 ● Contrasting v201109 with v201101

 ● Examples

 ● Helper Services
    ○ ConstantDataService
    ○ LocationCriterionService
v201109 vs v201101
Campaign Targets v201101
                  Campaign

                   Settings
            GeoTargetTypeSetting
            RealTimeBiddingSetting


               NetworkSettings
            targetGoogleSearch
           targetSearchNetwork
            targetContentNetwork
         targetContentContextual
        targetPartnerSearchNetwork
Campaign Targets v201101
          CampaignTargetService

                 Targets
           AdScheduleTarget

          LanguageTarget

             PlatformTarget

           MobileTarget

          GeoTarget
          DemographicTarget
Campaign Targets v201109
          CampaignTargetService

                 Targets
           AdScheduleTarget

          LanguageTarget

             PlatformTarget

           MobileTarget

          GeoTarget
          DemographicTarget
Campaign Targets v201109
         CampaignCriterionService

               New Criteria
          AgeRange
          Carrier
          Gender
          Language
          Location
          OperatingSystemVersion
          Platform
          Polygon         (Read Only)

          Proximity
Target to Criterion Migration
           Target                 Criterion
      AdScheduleTarget         N/A (not moving)
          AgeTarget               AgeRange
        GenderTarget               Gender
          CityTarget               Location
        CountryTarget              Location
         MetroTarget               Location
        PolygonTarget              Polygon
       ProvinceTarget               Location
       ProximityTarget             Proximity
      LanguageTarget               Language
     MobileCarrierTarget             Carrier
     MobilePlatformTarget   OperatingSystemVersion
       PlatformTarget               Platform
New CriteriaIds
                  PlatformName            CriteriaId
                     Desktop                30000
                  HighEndMobile             30001
                     Tablet                 30002


  LanguageName             LanguageCode                CriteriaId
        English                   en                     1000
       German                     de                     1001
         Dutch                    nl                     1010

http://code.google.com/apis/adwords/docs/appendix/languagecodes.html
http://code.google.com/apis/adwords/docs/appendix/platforms.html
Examples
LanguageTarget vs Criterion
Old:                 <targets>
                     <Target.Type>LanguageTarget</Target.Type>
LanguageTarget       <languageCode>en</languageCode>
                     </targets>



New:                 <criterion xsi:type="Language">
                     <id>1000</id>
Language Criterion   <type>LANGUAGE</type>
                     <Criterion.Type>Language</Criterion.Type>
                     <code>en</code>
                     </criterion>
ProvinceTarget vs Criterion
Old:                 <targets xsi:type="ProvinceTarget"> <Target.
                     Type>ProvinceTarget</Target.Type> <excluded>false</excluded>
ProvinceTarget       <provinceCode>US-AL</provinceCode> </targets>




New:                 <criterion xsi:type="Location">
                     <id>21133</id> <type>LOCATION</type> <Criterion.
Location Criterion   Type>Location</Criterion.Type>
                     <locationName>Alabama</locationName>
                     <displayType>State</displayType>
                     <isObsolete>false</isObsolete> <parentLocations> <id>2840</id>
                     <Criterion.Type>Location</Criterion.Type>
                     <isObsolete>false</isObsolete> </parentLocations> </criterion>
Helper Services
ConstantDataService
<soapenv:Envelope>
  <soapenv:Header>
    <RequestHeader>
      <authToken>DQA....kQ</authToken>
      <clientCustomerId>7767761884</clientCustomerId>
      <developerToken>LA...GWg</developerToken>
    </RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
    <getLanguageCriterion/>
  </soapenv:Body>
</soapenv:Envelope>
ConstantDataService
...
<getLanguageCriterionResponse>
     <rval>
       <id>1000</id>
       <Criterion.Type>Language</Criterion.Type>
       <code>en</code>
       <name>English</name>
     </rval>
     <rval>
       <id>1001</id>
       <Criterion.Type>Language</Criterion.Type>
       <code>de</code>
       <name>German</name>
     </rval>
     <rval>
       <id>1002</id>
       <Criterion.Type>Language</Criterion.Type>
       <code>fr</code>
       <name>French</name>
     </rval>
...
LocationCriterionService
...
  <soapenv:Header>
    <RequestHeader>
     <authToken>DQA.....6On2kQ</authToken>
     ...
    </RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
    <get>
      <selector>
         <fields>LocationName</fields>
         <fields>Reach</fields>
  <fields>CanonicalName</fields>
         <predicates>
           <field>LocationName</field>
           <operator>EQUALS</operator>
           <values>北京</values>
         </predicates>
      </selector>
    </get>
  </soapenv:Body>
</soapenv:Envelope>
LocationCriterionService
<location>
   <id>1003334</id>
   <Criterion.Type>Location</Criterion.Type>
   <locationName>Beijing</locationName>
   <displayType>City</displayType>
   <isObsolete>false</isObsolete>
   <parentLocations>
     <id>20163</id>
     <Criterion.Type>Location</Criterion.Type>
     <locationName>Beijing</locationName>
     <displayType>Region</displayType>
     <isObsolete>false</isObsolete>
   </parentLocations>
   <parentLocations>
     <id>2156</id>
     <Criterion.Type>Location</Criterion.Type>
     <locationName>China</locationName>
     <displayType>Country</displayType>
     <isObsolete>false</isObsolete>
   </parentLocations>
</location>
<canonicalName>北京市</canonicalName>
<reach>1920000</reach>
<searchTerm>北京</searchTerm>
Using the new Criteria
// Create locations. The IDs can be found in the documentation
// or retrieved with the LocationCriterionService.

$tablets = new Platform();
$tablets->id = 30002;
$campaignCriteria[] = new CampaignCriterion($campaignId, tablets);

$mexico = new Location();
$mexico->id = 2484;
$campaignCriteria[] = new CampaignCriterion($campaignId, $mexico);

...
// Create the operations
foreach ($campaignCriteria as $campaignCriterion) {
  $operations[] =
    new CampaignCriterionOperation($campaignCriterion, 'ADD');
}
...
// Make the mutate request
$result = $campaignCriterionService->mutate($operations);
...
Finding Criterion IDs
Questions?

Mais conteúdo relacionado

Semelhante a Campaign targeting changes

Vs 1044 certified android apps developer brochure
Vs 1044 certified android apps developer brochureVs 1044 certified android apps developer brochure
Vs 1044 certified android apps developer brochure
Narender Rana
 
Account Performance and Optimization
Account Performance and OptimizationAccount Performance and Optimization
Account Performance and Optimization
marcwan
 

Semelhante a Campaign targeting changes (20)

Vs 1044 certified android apps developer brochure
Vs 1044 certified android apps developer brochureVs 1044 certified android apps developer brochure
Vs 1044 certified android apps developer brochure
 
Data Quality Services
Data Quality ServicesData Quality Services
Data Quality Services
 
MongoDB.local Atlanta: Introduction to Serverless MongoDB
MongoDB.local Atlanta: Introduction to Serverless MongoDBMongoDB.local Atlanta: Introduction to Serverless MongoDB
MongoDB.local Atlanta: Introduction to Serverless MongoDB
 
Account Performance and Optimization
Account Performance and OptimizationAccount Performance and Optimization
Account Performance and Optimization
 
The Sizmek_Tech solutions
The Sizmek_Tech solutionsThe Sizmek_Tech solutions
The Sizmek_Tech solutions
 
Behaviour Driven Development
Behaviour Driven DevelopmentBehaviour Driven Development
Behaviour Driven Development
 
Google analytics. GAIQ Test
Google analytics. GAIQ TestGoogle analytics. GAIQ Test
Google analytics. GAIQ Test
 
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
 
Groovy Architectural Flexibility
Groovy Architectural FlexibilityGroovy Architectural Flexibility
Groovy Architectural Flexibility
 
Discover Data That Matters- Deep dive into WSO2 Analytics
Discover Data That Matters- Deep dive into WSO2 AnalyticsDiscover Data That Matters- Deep dive into WSO2 Analytics
Discover Data That Matters- Deep dive into WSO2 Analytics
 
Keyword Services Platform (KSP) from Microsoft adCenter
Keyword Services Platform (KSP) from Microsoft adCenterKeyword Services Platform (KSP) from Microsoft adCenter
Keyword Services Platform (KSP) from Microsoft adCenter
 
Evolution of Spotify's ad architecture (Qcon 2016 Shanghai)
Evolution of Spotify's ad architecture (Qcon 2016 Shanghai)Evolution of Spotify's ad architecture (Qcon 2016 Shanghai)
Evolution of Spotify's ad architecture (Qcon 2016 Shanghai)
 
Servicehost Customization
Servicehost CustomizationServicehost Customization
Servicehost Customization
 
Kayal cv
Kayal cvKayal cv
Kayal cv
 
Engineering Highly Maintainable Code: Maintain or Innovate
Engineering Highly Maintainable Code: Maintain or InnovateEngineering Highly Maintainable Code: Maintain or Innovate
Engineering Highly Maintainable Code: Maintain or Innovate
 
Main Features of the SmartyAds White Label SSP
Main Features of the SmartyAds White Label SSPMain Features of the SmartyAds White Label SSP
Main Features of the SmartyAds White Label SSP
 
Hiren Patadia
Hiren PatadiaHiren Patadia
Hiren Patadia
 
MongodB Internals
MongodB InternalsMongodB Internals
MongodB Internals
 
Evolving your Data Access with MongoDB Stitch - Drew Di Palma
Evolving your Data Access with MongoDB Stitch - Drew Di PalmaEvolving your Data Access with MongoDB Stitch - Drew Di Palma
Evolving your Data Access with MongoDB Stitch - Drew Di Palma
 
Korem's Corporate presentation
Korem's Corporate presentationKorem's Corporate presentation
Korem's Corporate presentation
 

Mais de PideCurso

Facilitando el desarrollo web móvil, frameworks
Facilitando el desarrollo web móvil, frameworksFacilitando el desarrollo web móvil, frameworks
Facilitando el desarrollo web móvil, frameworks
PideCurso
 

Mais de PideCurso (8)

Facilitando el desarrollo web móvil, frameworks
Facilitando el desarrollo web móvil, frameworksFacilitando el desarrollo web móvil, frameworks
Facilitando el desarrollo web móvil, frameworks
 
Dossier de Micropatrocinios de Nuevos Retos Sevilla
Dossier de Micropatrocinios de Nuevos Retos SevillaDossier de Micropatrocinios de Nuevos Retos Sevilla
Dossier de Micropatrocinios de Nuevos Retos Sevilla
 
Charla sobre experiencia de usuario
Charla sobre experiencia de usuarioCharla sobre experiencia de usuario
Charla sobre experiencia de usuario
 
HTML5, CSS3 y móviles
HTML5, CSS3 y móvilesHTML5, CSS3 y móviles
HTML5, CSS3 y móviles
 
Curso de creación web para Dummies
Curso de creación web para DummiesCurso de creación web para Dummies
Curso de creación web para Dummies
 
Advice For Selling WordPress Themes
Advice For Selling WordPress ThemesAdvice For Selling WordPress Themes
Advice For Selling WordPress Themes
 
Desarrollo en la nube
Desarrollo en la nubeDesarrollo en la nube
Desarrollo en la nube
 
Dossier de servicios de PideCurso
Dossier de servicios de PideCursoDossier de servicios de PideCurso
Dossier de servicios de PideCurso
 

Último

Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Abortion pills in Kuwait Cytotec pills in Kuwait
 
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
DUBAI (+971)581248768 BUY ABORTION PILLS IN ABU dhabi...Qatar
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
allensay1
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 

Último (20)

Falcon Invoice Discounting: Tailored Financial Wings
Falcon Invoice Discounting: Tailored Financial WingsFalcon Invoice Discounting: Tailored Financial Wings
Falcon Invoice Discounting: Tailored Financial Wings
 
Buy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From Seosmmearth
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
Power point presentation on enterprise performance management
Power point presentation on enterprise performance managementPower point presentation on enterprise performance management
Power point presentation on enterprise performance management
 
New 2024 Cannabis Edibles Investor Pitch Deck Template
New 2024 Cannabis Edibles Investor Pitch Deck TemplateNew 2024 Cannabis Edibles Investor Pitch Deck Template
New 2024 Cannabis Edibles Investor Pitch Deck Template
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
 
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow ChallengesFalcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
 
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfTVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdf
 
Cracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' SlideshareCracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' Slideshare
 

Campaign targeting changes

  • 2. Topics ● Contrasting v201109 with v201101 ● Examples ● Helper Services ○ ConstantDataService ○ LocationCriterionService
  • 4. Campaign Targets v201101 Campaign Settings GeoTargetTypeSetting RealTimeBiddingSetting NetworkSettings targetGoogleSearch targetSearchNetwork targetContentNetwork targetContentContextual targetPartnerSearchNetwork
  • 5. Campaign Targets v201101 CampaignTargetService Targets AdScheduleTarget LanguageTarget PlatformTarget MobileTarget GeoTarget DemographicTarget
  • 6. Campaign Targets v201109 CampaignTargetService Targets AdScheduleTarget LanguageTarget PlatformTarget MobileTarget GeoTarget DemographicTarget
  • 7. Campaign Targets v201109 CampaignCriterionService New Criteria AgeRange Carrier Gender Language Location OperatingSystemVersion Platform Polygon (Read Only) Proximity
  • 8. Target to Criterion Migration Target Criterion AdScheduleTarget N/A (not moving) AgeTarget AgeRange GenderTarget Gender CityTarget Location CountryTarget Location MetroTarget Location PolygonTarget Polygon ProvinceTarget Location ProximityTarget Proximity LanguageTarget Language MobileCarrierTarget Carrier MobilePlatformTarget OperatingSystemVersion PlatformTarget Platform
  • 9. New CriteriaIds PlatformName CriteriaId Desktop 30000 HighEndMobile 30001 Tablet 30002 LanguageName LanguageCode CriteriaId English en 1000 German de 1001 Dutch nl 1010 http://code.google.com/apis/adwords/docs/appendix/languagecodes.html http://code.google.com/apis/adwords/docs/appendix/platforms.html
  • 11. LanguageTarget vs Criterion Old: <targets> <Target.Type>LanguageTarget</Target.Type> LanguageTarget <languageCode>en</languageCode> </targets> New: <criterion xsi:type="Language"> <id>1000</id> Language Criterion <type>LANGUAGE</type> <Criterion.Type>Language</Criterion.Type> <code>en</code> </criterion>
  • 12. ProvinceTarget vs Criterion Old: <targets xsi:type="ProvinceTarget"> <Target. Type>ProvinceTarget</Target.Type> <excluded>false</excluded> ProvinceTarget <provinceCode>US-AL</provinceCode> </targets> New: <criterion xsi:type="Location"> <id>21133</id> <type>LOCATION</type> <Criterion. Location Criterion Type>Location</Criterion.Type> <locationName>Alabama</locationName> <displayType>State</displayType> <isObsolete>false</isObsolete> <parentLocations> <id>2840</id> <Criterion.Type>Location</Criterion.Type> <isObsolete>false</isObsolete> </parentLocations> </criterion>
  • 14. ConstantDataService <soapenv:Envelope> <soapenv:Header> <RequestHeader> <authToken>DQA....kQ</authToken> <clientCustomerId>7767761884</clientCustomerId> <developerToken>LA...GWg</developerToken> </RequestHeader> </soapenv:Header> <soapenv:Body> <getLanguageCriterion/> </soapenv:Body> </soapenv:Envelope>
  • 15. ConstantDataService ... <getLanguageCriterionResponse> <rval> <id>1000</id> <Criterion.Type>Language</Criterion.Type> <code>en</code> <name>English</name> </rval> <rval> <id>1001</id> <Criterion.Type>Language</Criterion.Type> <code>de</code> <name>German</name> </rval> <rval> <id>1002</id> <Criterion.Type>Language</Criterion.Type> <code>fr</code> <name>French</name> </rval> ...
  • 16. LocationCriterionService ... <soapenv:Header> <RequestHeader> <authToken>DQA.....6On2kQ</authToken> ... </RequestHeader> </soapenv:Header> <soapenv:Body> <get> <selector> <fields>LocationName</fields> <fields>Reach</fields> <fields>CanonicalName</fields> <predicates> <field>LocationName</field> <operator>EQUALS</operator> <values>北京</values> </predicates> </selector> </get> </soapenv:Body> </soapenv:Envelope>
  • 17. LocationCriterionService <location> <id>1003334</id> <Criterion.Type>Location</Criterion.Type> <locationName>Beijing</locationName> <displayType>City</displayType> <isObsolete>false</isObsolete> <parentLocations> <id>20163</id> <Criterion.Type>Location</Criterion.Type> <locationName>Beijing</locationName> <displayType>Region</displayType> <isObsolete>false</isObsolete> </parentLocations> <parentLocations> <id>2156</id> <Criterion.Type>Location</Criterion.Type> <locationName>China</locationName> <displayType>Country</displayType> <isObsolete>false</isObsolete> </parentLocations> </location> <canonicalName>北京市</canonicalName> <reach>1920000</reach> <searchTerm>北京</searchTerm>
  • 18. Using the new Criteria // Create locations. The IDs can be found in the documentation // or retrieved with the LocationCriterionService. $tablets = new Platform(); $tablets->id = 30002; $campaignCriteria[] = new CampaignCriterion($campaignId, tablets); $mexico = new Location(); $mexico->id = 2484; $campaignCriteria[] = new CampaignCriterion($campaignId, $mexico); ... // Create the operations foreach ($campaignCriteria as $campaignCriterion) { $operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD'); } ... // Make the mutate request $result = $campaignCriterionService->mutate($operations); ...