Cannot update AdGroupAd using GoogleAds API

2019-08-22 Thread integrations bidalgo
Hi, I’m trying to update texts for an AdgroupAd using the following code (using GoogleAds API): { $appAdInfo = new AppAdInfo(); $headlinesAssets = $this->stringArrayToAdAssetTextArray(['Head', 'Head2']); $appAdInfo->setHeadlines($headlinesAssets); $descriptionsAssets = $this->str

Correlation between mediaId and assetId (for media bundle assets)

2019-08-21 Thread integrations bidalgo
Is there any way to set HTML5 uploaded using MediaService as an asset of an AdGroupAd? When uploading a media bundle with MediaService, mediaId is returned, but it seems there is no way to associate this mediaId with an AdGroupAd and set uploaded media bundle as an asset of AdGroupAd. -- --

Media bundle (HTML5) upload using AssetService

2019-08-21 Thread integrations bidalgo
Hi, I’m trying again to upload HTML5 as a media bundle asset (using the example for image asset upload: https://developers.google.com/adwords/api/docs/samples/php/miscellaneous#upload-an-image-asset ) My code is like this: public function uploadHtml5Asset($url) { /** @var AssetService $ass

Unable to add App Ad to ad group

2019-07-29 Thread integrations bidalgo
Hi, I'm trying to add app_ad to ad group (UAC with adgroup support). Getting error: Request contains an invalid argument. What's wrong here? public function setAds($adGroupId) { $adGroupResourceName = new StringValue(['value' => ResourceNames::forAdGroup($this->account_google_i

Media bundle upload: how to associate with asset?

2019-07-23 Thread integrations bidalgo
I’m uploading HTML5 zip using MediaService (AdWords API), getting mediaId, dimensions, urls, etc. in the response. Now I’d like to create an asset (in UAC campaign’s ad group’s ad - UniversalAppAd) and associate it with uploaded media bundle. How can I do it? I searched for a relevant example, bu

Asset-level report: no segments.conversion_action_name field

2019-07-17 Thread integrations bidalgo
Hi, We faced the problem with asset-level report: there is no ‘segments.conversion_action_name’ field available for the report. This is the log: [2019-07-17 13:35:40] google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v2.services.GoogleAdsService

Can't perform asset-level report using Google Ads API

2019-07-16 Thread integrations bidalgo
Hi, I tried to get asset-level report using AdGroupAdAssetView resource, but got error stating that the resource is unrecognised: [2019-07-16 07:36:50] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v1.services.GoogleAdsService/Search", ClientCu

ADGROUP_PERFORMANCE_REPORT: no data returned in AdWords API

2019-07-05 Thread integrations bidalgo
Hi, I'm trying to get ADGROUP_PERFORMANCE_REPORT in AdWords API, but no data is received. The query is : reportQuery SELECT Date,AdGroupId,Cost,Clicks,Impressions,Conversions FROM ADGROUP_PERFORMANCE_REPORT DURING 20190222,20190222 When I querying the same in GoogleAds API: select segments.dat

Google Ads: GeoTargetConstant service - ability to search worldwide

2019-06-27 Thread integrations bidalgo
Hello, In AdWords API we had ability to search geo locations worldwide (without specifying country code). In GoogleAds country code is required parameter: $response = $this->geoTargetConstantServiceClient->suggestGeoTargetConstants( new StringValue(['value' => 'en']), new StringValu

Re: Google Ads: MobileApplicationVendor enum seems missing

2019-06-26 Thread integrations bidalgo
Thanks, Nikisha. Worked for me! On Wednesday, June 26, 2019 at 12:28:09 AM UTC+3, adsapiforumadvisor wrote: > > Hi, > > Thank you for contacting support. The equivalent for appVendor property in > Google Ads API is app_store field of AppCampaignSetting >

Google Ads: MobileApplicationVendor enum seems missing

2019-06-25 Thread integrations bidalgo
Hello, In AdWords API there was appVendor property of UniversalAppCampaignSetting and its type was MobileApplicationVendor enum. I can't find this property in GoogleAds API. It does not exist in AppAdInfo or AppCampaignSetting. Also, MobileApplicationVendor enum does not exist. Is there any repl

Google Ads: Error during portfolio bidding strategy update

2019-06-25 Thread integrations bidalgo
Hello, I'm updating the portfolio bidding strategy (in the code below setUpdate is called) : // if biddingStrategyName is null, set it to campaignId if ($biddingStrategyResourceName) { $biddingStrategy = new BiddingStrategy([ 'resource_name' => $biddingStrategyResourceName ]); } e

Re: Google Ads: update campaign bidding strategy

2019-06-25 Thread integrations bidalgo
Thanks, worked for me! On Monday, June 24, 2019 at 11:27:37 PM UTC+3, adsapiforumadvisor wrote: > > Hello, > > The bidding_strategy data is returned if you have Portfolio strategy > associated with the campaign. It looks like the specific account has no > Portfolio bid strategies in the account

Re: Google Ads: update campaign bidding strategy

2019-06-24 Thread integrations bidalgo
addition: the query I'm sending to query campaign's bidding strategy id is: SELECT bidding_strategy.id FROM campaign WHERE campaign.id = 1703363901 LIMIT 1 On Monday, June 24, 2019 at 6:22:24 PM UTC+3, integrations bidalgo wrote: > > Hi, > > I'm using the following

Google Ads: update campaign bidding strategy

2019-06-24 Thread integrations bidalgo
Hi, I'm using the following code to update campaign bid: /** * Set campaign bid * @param float $bid * @param string $campaignId * @param int $type , type is TARGET_CPA or TARGET_ROAS * @return mixed * @throws \Google\ApiCore\ApiException * @throws \Google\ApiCore\ValidationException */ p

Re: Google Ads: Querying language data from campaign_criterion

2019-06-24 Thread integrations bidalgo
Hi, Unfortunately, I can't get language code or language name using *getLanguage* -> *getLanguageConstantValue* I saw that they can be retrieved from LanguageConstant object, but there is no method allowing to get LanguageConstant from CampaignCriterion. $googleAdsRow->getCampaignCriterion()->

Re: CampaignCriterionStatus is missing

2019-06-24 Thread integrations bidalgo
I upgraded to 1.4.1 and can get criterion status now. Thanks! On Monday, June 24, 2019 at 4:26:19 PM UTC+3, integrations bidalgo wrote: > > Hi Ziv, > > There is no getStatusVlue method in CampaignCriterion: > > Call to undefined method > Google\Ads\GoogleAds\V1\Resour

Re: CampaignCriterionStatus is missing

2019-06-24 Thread integrations bidalgo
Checked the latest version of google-ads-php. No getStatusValue method exists On Monday, June 24, 2019 at 4:26:19 PM UTC+3, integrations bidalgo wrote: > > Hi Ziv, > > There is no getStatusVlue method in CampaignCriterion: > > Call to undefined method > Google\Ads\G

Re: CampaignCriterionStatus is missing

2019-06-24 Thread integrations bidalgo
Hi Ziv, There is no getStatusVlue method in CampaignCriterion: Call to undefined method Google\Ads\GoogleAds\V1\Resources\CampaignCriterion::getStatusValue() I'm using "googleads/google-ads-php": "^1.2.0" Is it OK? On Monday, June 24, 2019 at 10:18:17 AM UTC+3, adsapiforumadvisor wrote: > > H

Google Ads: update campaign bidding strategy

2019-06-24 Thread integrations bidalgo
Hello, I'm trying to update a campaign's bidding strategy: $biddingStrategy = new BiddingStrategy(); $biddingStrategy->setType($type); if ($type == BiddingStrategyType::TARGET_ROAS) { $targetRoas = new TargetRoas(['target_roas' => $bid]); $biddingStrategy->setTargetRoas($targetRoas); } el

Google Ads: CampaignCriterion status is missing

2019-06-24 Thread integrations bidalgo
Hello, I'm sending the following query (in Google Ads API): SELECT campaign_criterion.status FROM campaign_criterion I'm parsing the query result calling to: $responseObject->iterateAllElements() And for row element I'm calling: $googleAdsRow->getCampaignCriterion() Now I want to get campaign crit

Re: Google Ads: Querying language data from campaign_criterion

2019-06-24 Thread integrations bidalgo
Hi Peter, Not sure what do you mean by "explicitly targeted", but languages targeting was created by CampaignCriterionService (in AdWords API, by campaignCriterionService->mutate method). On Monday, June 24, 2019 at 7:03:39 AM UTC+3, adsapiforumadvisor wrote: > > Hi, > > So I can better invest

Google Ads: media_file fields missing

2019-06-23 Thread integrations bidalgo
Hello, I'm querying media_file with query like this: SELECT media_file.id,media_file.mime_type,media_file.name,media_file.source_url FROM media_file WHERE media_file.id IN ( 1 ) It seems that there are no option to select "width", "height", "urls", "streamingUrls" fields that were availa

Google Ads: Querying language data from campaign_criterion

2019-06-23 Thread integrations bidalgo
Hello, I'm querying language data from campaign_criterion object (Google Ads) like this: SELECT campaign_criterion.status,campaign.id,campaign_criterion.criterion_id,campaign_criterion.language.language_constant FROM campaign_criterion After getting results, I'm looping over GoogleAdsRows and

CampaignCriterionStatus is missing

2019-06-23 Thread integrations bidalgo
Hello, I'm sending the following query (in Google Ads API): SELECT campaign_criterion.status FROM campaign_criterion I'm parsing the query result calling to: $responseObject->iterateAllElements() And for row element I'm calling: $googleAdsRow->getCampaignCriterion() Now I want to get campaign crit

Google Ads API: "settings" field seems missing

2019-05-27 Thread integrations bidalgo
Hi. We are migrating from AdWords API to Google Ads API. The question is about getting UAC campaign info. In AdWords API we could request campaign settings (like heading, description1, description2 etc.) Now I'm preparing the query like this: SELECT campaign.id, campaign.name FROM campaign To ge