Hi!

Any new development on this?  I've been trying to create Dynamic Search Ads 
campaigns for the last two days too without success (using v201506).  The 
information presented in the Dynamic Search Ads Guide 
<https://developers.google.com/adwords/api/docs/guides/dynamic-search-ads> 
seems outdated... since it shows the use of KeywordMatchSetting which is no 
longer in use and it doesn't define the Campaign Type field, which is 
required (now).

Here's my code that creates the campaign.  It sets every parameter right, 
but I can't get the Dynamic Search Ads 'subtype' active.  It does accept my 
Dynamic Search Ads settings object because when I go in the Web user 
interface to set the sub-type manually it shows the values I submitted 
through the API.

    

$campaign = new Campaign();
    $campaign->name = $CampaignName;
    $campaign->advertisingChannelType = 'SEARCH';  //looking to create: 
Search Network only - Dynamic Search Ads
    
    $SearchAdsSettings = new DynamicSearchAdsSetting();
    $SearchAdsSettings->domainName = "autoflash.net";
    $SearchAdsSettings->languageCode = "fr";
    $campaign->settings[] = $SearchAdsSettings;

    // Set network targeting (optional).
    $networkSetting = new NetworkSetting();
    $networkSetting->targetGoogleSearch = TRUE;
    $networkSetting->targetSearchNetwork = TRUE;
    $networkSetting->targetContentNetwork = FALSE;
    $campaign->networkSetting = $networkSetting;
    
    // Set shared budget (required).
    $campaign->budget = new Budget();
    $campaign->budget->budgetId = $BudgetID;

    // Set bidding strategy (required).
    $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
    $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC';

    // You can optionally provide a bidding scheme in place of the type.
    $biddingScheme = new ManualCpcBiddingScheme();
    $biddingScheme->enhancedCpcEnabled = FALSE;
    $biddingStrategyConfiguration->biddingScheme = $biddingScheme;

    $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration;

    // Set additional settings (optional).
    $campaign->status = 'PAUSED';
    $campaign->servingStatus = 'PENDING';
    $campaign->startDate = date('Ymd');
    $campaign->endDate = date('Ymd', strtotime('+1 month'));

    // Create operation.
    $operation = new CampaignOperation();
    $operation->operand = $campaign;
    $operation->operator = 'ADD';
    $operations[] = $operation;


  // Make the mutate request.
  $result = $campaignService->mutate($operations);


Also, I couldn't find anywhere how to define the auto targets for the 
dynamic ads.  Any idea?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2e64e7b3-fed2-47f0-95e1-bc5c77dfadf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to