googleads / googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP
Apache License 2.0
656 stars 769 forks source link

Conversion Selection when campaign creation #727

Closed divyeshgajja closed 2 years ago

divyeshgajja commented 2 years ago

Hello sir , Can you please tell me how to connect my conversion to campaign.

Please see this attachment I need when I am create campaign using api then selected download conversion action.

Screenshot 2021-11-24 at 1 07 19 PM

So please tell me how to it this.

This is my simple code to create campaign using api. Please give me which parameter I m pass to this issue solve.

$campaign = new Campaign([ 'name' => $campaign_name, 'campaign_budget' => $budgetResourceName, 'status' => CampaignStatus::ENABLED, 'advertising_channel_type' => AdvertisingChannelType::MULTI_CHANNEL, 'advertising_channel_sub_type' => AdvertisingChannelSubType::APP_CAMPAIGN, 'target_cpa' => new TargetCpa(['target_cpa_micros' => $bid_value]),

      // Sets the App campaign settings.
      'app_campaign_setting' => new AppCampaignSetting([
          'app_id' => $bundle_id,
          'app_store' => AppCampaignAppStore::GOOGLE_APP_STORE,
          // Optional: Optimize this campaign for getting new users for your app.
          'bidding_strategy_goal_type' =>
              AppCampaignBiddingStrategyGoalType::OPTIMIZE_INSTALLS_TARGET_INSTALL_COST
      ])
      // // Optional fields.
      // 'start_date' => date('Ymd', strtotime('+1 day')),
      // 'end_date' => date('Ymd', strtotime('+365 days'))
  ]);

Thanks.

fiboknacky commented 2 years ago

It seems you're using the Google Ads API PHP library, not this repository. For general questions about the API, please use this forum.