How to Generate userInterest Resource Name using Google Ads API bita version ?

150 skatījumi
Pāriet uz pirmo nelasīto ziņojumu

Rakesh Chauhan

nelasīta,
2019. gada 15. nov. 23:32:1815.11.19
uz AdWords API and Google Ads API Forum
Hello sir ,

              i am trying to create userInterest but i can't create userInterest Resource Name because i can't get UserInterestOperation and all that 
              so can you please tell me how create UserInterest Resource Name using Google Ads API Bita version ?

Thank you 
  

Google Ads API Forum Advisor Prod

nelasīta,
2019. gada 18. nov. 15:57:0018.11.19
uz addon....@gmail.com,adwor...@googlegroups.com
Hi Rakesh,

When using the AdGroupCriteriaService to create a user interest, you will need to create a UserInterestInfo with the ID of the user interest you want to be targeted. 

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5001UOCINy:ref

Rakesh Chauhan

nelasīta,
2019. gada 19. nov. 05:20:0419.11.19
uz AdWords API and Google Ads API Forum
yes sir , but UserInterestInfo need UserInterest resource name , and i dont know how to create UserInterest Resource Name , because there is not Operation or MutateResponse for UserInterest then how can i get UserInterest Resource Name 

can you please help me ? 

Google Ads API Forum Advisor Prod

nelasīta,
2019. gada 19. nov. 15:50:1819.11.19
uz addon....@gmail.com,adwor...@googlegroups.com

Hi Rakesh,

You could use the format customers/[customer_id]/userInterests/[userInterestId].

Let me know if you face any issues.

Cheers,


Anthony
Google Ads API Team



ref:_00D1U1174p._5001UOCINy:ref

Rakesh Chauhan

nelasīta,
2019. gada 19. nov. 23:45:2719.11.19
uz AdWords API and Google Ads API Forum
Yes sir , i want to generate it , but i don't know how to generate it 

Google Ads API Forum Advisor Prod

nelasīta,
2019. gada 20. nov. 15:21:0620.11.19
uz addon....@gmail.com,adwor...@googlegroups.com
Hi Rakesh,

You can create a builder just like when creating other criteria. For the user interest, you can pass the ID of the category you need. Here is an example on how to add criteria using our Java client library.

Regards,

Rakesh Chauhan

nelasīta,
2019. gada 21. nov. 01:39:1821.11.19
uz AdWords API and Google Ads API Forum
yes , i have also tried like using i have also created multiple Language setup and Location setup , it has done perfectly 

but in   UserInterest Class i can not find format method , which by using it i can create Resource Name 

so can you please help me , i am very confused how to finish it .

Google Ads API Forum Advisor Prod

nelasīta,
2019. gada 21. nov. 15:52:1921.11.19
uz addon....@gmail.com,adwor...@googlegroups.com
Hi Rakesh,

Here is an example of a builder you can use to create the user interest:
CampaignCriterion.newBuilder()
.setCampaign(StringValue.of(campaignResourceName))
.setUserInterest(UserInterestInfo.newBuilder().setUserInterestCategory(StringValue.of("customers/123456789/userInterests/92949")).build())
.build();

Rakesh Chauhan

nelasīta,
2019. gada 23. nov. 01:33:1623.11.19
uz AdWords API and Google Ads API Forum
Yes , i was tried it 

CampaignCriterion.newBuilder()
.setCampaign(StringValue.of(campaignResourceName))
.setUserInterest(UserInterestInfo.newBuilder().setUserInterestCategory(StringValue.of("customers/123456789/userInterests/92949")).build())
.build();


but in this  i need UserInterest ResourceName 
it is StringValue.of("customers/123456789/userInterests/92949")

So how can i generate it ?

can i create it Sting as menually ?

Rakesh Chauhan

nelasīta,
2019. gada 23. nov. 04:20:1223.11.19
uz AdWords API and Google Ads API Forum
Thank you ... i have done it 😂️😂️😂️😂️😂️😂️


On Friday, November 22, 2019 at 2:22:19 AM UTC+5:30, adsapiforumadvisor wrote:
Atbildēt visiem
Atbildēt autoram
Pārsūtīt
0 jauni ziņojumi