SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
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?

Más contenido relacionado

Similar 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
 

Similar 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
 

Más 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
 

Más 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

Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
amitlee9823
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
Renandantas16
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Dipal Arora
 
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)

Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
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
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
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...
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 

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); ...