Adding Positive Keywords and Location Names as Campaign Criterion in PHP

2021-10-26 Thread Filip Pećanac
Hi, I am having two issues with using Google Ads API. 1. I am trying to add an array of Positive Keywords via Google Ads API, yet all I have figured out so far is how to add Negative Keywords. 2. When I try to add location as campaign criterion, I see that it can be done by adding Location ID,

Re: Adding Positive Keywords and Location Names as Campaign Criterion in PHP

2021-10-28 Thread Filip Pećanac
Hi I have managed to fix this, so everything is fine. Thanks for the assistance! Regards, Filip On Thursday, October 28, 2021 at 4:10:32 AM UTC+2 adsapi wrote: > Hello Filip, > > Thanks for getting back to us. > > So our team can take a closer look on the error, can you share to us the > compl

Unable to Add Logo Image in Responsive Display Ad

2021-10-28 Thread Filip Pećanac
Hi, I am having issues with adding Logo image via PHP library. I manage to add landscape and square image, but for some reason it doesn't work with Logo image. This is a part of my code with logo instructions: $marketingImageAssetResourceName = self::createImageAsset( $googleAdsClient, $custo

Re: Unable to Add Logo Image in Responsive Display Ad

2021-11-01 Thread Filip Pećanac
Hi Aryeh, Thanks for the response. Unfortunately, there are no logs of my requests and responses. I have followed the instructions from the Logging section and once I complete all the steps, there is no generated data in my file.log. I am using web application if that is relevant for this.

Adding User Interest Info at Ad Group level in PHP

2021-11-01 Thread Filip Pećanac
Hi, Could you please assist me regarding the setting User Interest Info at Ad Group level, or provide me with an example of this functionality via Google Ads API? Currently, I am using positive keywords, but I think using this option would assist me with targeting the right users with Display

Once Demographic Criterion is set it cannot be changed

2021-11-02 Thread Filip Pećanac
Hi, When I add Demographic AdGroupCriterion via API, lets say exclude all male users from targeting, it works fine. For this, i use this code . But later on, once I try to *include* the male populatio

Re: Once Demographic Criterion is set it cannot be changed

2021-11-02 Thread Filip Pećanac
Hi Aryeh, Thanks for the response. Let me just clarify the situation step by step, so that you can understand it better and let me know if I haven't done something properly: 1. I create an adGroup via API (automatically all age ranges are selected) 2. I use negative criterion to exclude one of

Re: Once Demographic Criterion is set it cannot be changed

2021-11-03 Thread Filip Pećanac
Hi Yasar, Thanks for the assistance. So once I create an AdGroup via API all Demographic criterions are selected by default. What would be your suggestions (or an example if you could provide) in order to: 1. Exclude certain Criterion via API? 2. Re-include that Criterion via API? Whenever I

Re: Adding User Interest Info at Ad Group level in PHP

2021-11-03 Thread Filip Pećanac
Hi Mark, I have followed your advice, and it works fine. Thanks a lot! On Tuesday, November 2, 2021 at 6:27:49 AM UTC+1 adsapi wrote: > Hello Filip, > > Thank you for reaching out to us. > > You can refer on this guide >

Re: Once Demographic Criterion is set it cannot be changed

2021-11-04 Thread Filip Pećanac
Hi Peter, Thank you very much! I have followed your suggestions and now everything works great. Thanks for your time! Regards, Filip On Thursday, November 4, 2021 at 3:39:43 AM UTC+1 adsapi wrote: > Hi Filip, > > Thank you for your follow up, our team would be happy to help. You may > refer

Removing Campaign Criterion in PHP

2021-11-05 Thread Filip Pećanac
Hi, I am trying to remove some of the previously set Campaign Criterions, such as language. I use the following peace of code: public function removeCampaignCriterion( $customerId, $campaignId, $criterionId ) { $campaignCriterionResourceName = ResourceNames::forCampaignCriterion ($customerId,$

Estimated performance

2021-11-09 Thread Filip Pećanac
Hi, I am trying to accomplish the same thing as in the Google Ads UI when a new campaign is being created - get estimated performance. The idea is that once I enter some targeting criteria, such as keywords, languages, locations, demographics, etc. I am able retrieve the estimation. I would li

Getting criterion ID for one keyword

2021-11-15 Thread Filip Pećanac
Hi, When I run GetKeywords.php it displays info about all criterion keywords. So, how should I structure my GAQL query when I want to get *just the criterion ID* for only one keyword that I have previously added? Thanks in advance! Regards, Filip -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

Re: Getting criterion ID for one keyword

2021-11-16 Thread Filip Pećanac
Hi Peter, Thanks for the reply, but I think you have misunderstood me :) In the library there is GetKeywords.php example file which retrieves all keywords for specific Ad Group. The query used in this example is: $query = 'SELECT ad_group.id, ' . 'ad_group_criterion.type, ' . 'ad_group_criterio

Re: setting language parameter in new campaign class

2021-11-16 Thread Filip Pećanac
Hi Oleg, In PHP I have used the following code to add language(s): $campaignResourceName = ResourceNames::forCampaign($customerId, $campaignId); $campaignCriterionOperations = []; $campaignCriterion = new CampaignCriterion([ 'campaign' => $campaignResourceName, 'type' => CriterionType::LANGUAGE

Re: setting language parameter in new campaign class

2021-11-16 Thread Filip Pećanac
Hi Oleg, In PHP I have used the following code to add language(s): $campaignResourceName = ResourceNames::forCampaign($customerId, $campaignId); $campaignCriterionOperations = []; $campaignCriterion = new CampaignCriterion([ 'campaign' => $campaignResourceName, 'type' => CriterionType::LANGUAGE

How to retrieve customer Id for specific client?

2021-11-17 Thread Filip Pećanac
Hi, Is there a simple way to get Customer Account ID under my Manager Account via Google Ads API? I have used queries to retrieve Campaign and Ad Group IDs, but I am a little bit stuck here. Thanks in advance. Ps. If you could provide an example of the query it would be great :) Regards, Fil

Re: How to retrieve customer Id for specific client?

2021-11-18 Thread Filip Pećanac
Hi Mark, Thanks for the response, but I think you might have misunderstood me :) To better explain my issue, I will use the following example. Let's say I create a Manager Account with certain ID that later serves as LoginCustomerId. After that, i use CreateCustomer.php to create a new Custome

Affinity categories missing

2021-11-23 Thread Filip Pećanac
Hi, It seems like some of the available Criterions via API are not supported in Google Ads. For example, CriterionId:92994 (Avid Fishers) cannot be found in Google Ads Interface and therefore once I try to add this criterion I get a fatal error. Here is the response: Fault --- Status code

Unable to remove User Interest from AdGroups

2021-11-23 Thread Filip Pećanac
Hi, I have an issue with removing any User Interest Criterions from AdGroups. I can remove AdGroup Criterions for Age and Gender, but if I try to use same method, I get the following message: *Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "Request contains an invalid argumen

Text Capitalization in Display Ads

2021-11-30 Thread Filip Pećanac
Hi, Could you provide me with guidelines regarding the capitalization restrictions for Text Assets in Responsive Display Ads? I don't understand the pattern that sometimes let's me use multiple capitalized letters for headlines, descriptions, etc, but when i use all uppercase letters or somet

Total campaign cost

2021-12-01 Thread Filip Pećanac
Hi, I have a question regarding the campaign budget. Let's say, I set campaign duration for 2 weeks (start_date and end_date) and amount_micros 10$. Based on this, I wouldn't expect my total spending for this period to be more than 140$ (14 days x 10$ daily budget). Is my calculation correct

Audience targeting

2022-01-04 Thread Filip Pećanac
Hi, I have a question regarding the Affinity and In-market categories. If I set multiple criterions from these categories, are by default targeted only people belonging to all of these selected categories, or is it enough to belong to only one of them? I am setting these criterions on Ad group

Re: Audience targeting

2022-01-05 Thread Filip Pećanac
Hi Jim, Thanks for the response! Regards On Tuesday, January 4, 2022 at 2:08:27 PM UTC+1 Jim Vaillancourt wrote: > It is enough to belong to just one audience. They don't need to belong to > all of them to be targeted with an ad. > > On Tuesday, January 4, 2022 at 3:39:47 AM UTC-6 > filip