Hi Paul,

I tried this using the following code snippet in PHP

 $adGroupCriterionService = $user->GetService('AdGroupCriterionService',
'v201309');
 $selector = new Selector();
 $selector->fields =
array('Id','parameter','criteriaCoverage','criteriaSamples');
 $selector->predicates[] = new Predicate('AdGroupId', 'IN',
array($adGroupId));

$page = $adGroupCriterionService->get($selector);

if (isset($page->entries)) {
      foreach ($page->entries as $adGroupCriterion) {
           echo  $adGroupCriterion->criterion->parameter;
           var_dump($adGroupCriterion->criterion->userListId);
var_dump($adGroupCriterion->criterion->id);
      }
    }
And checked the output which was of the type

 [0] => BiddableAdGroupCriterion Object
        (
            [userStatus] =>
            [systemServingStatus] =>
            [approvalStatus] =>
            [disapprovalReasons] =>
            [destinationUrl] =>
            [experimentData] =>
            [firstPageCpc] =>
            [topOfPageCpc] =>
            [qualityInfo] =>
            [biddingStrategyConfiguration] =>
            [bidModifier] =>
            [adGroupId] => xxxxxxxxx
            [criterionUse] => BIDDABLE
            [criterion] => CriterionUserList Object
                (
                    [userListId] =>
                    [userListName] =>
                    [userListMembershipStatus] =>
                    [id] => xxxxxxxx
                    [type] => USER_LIST
                    [CriterionType] => CriterionUserList
                    [_parameterMap:Criterion:private] => Array
                        (
                            [Criterion.Type] => CriterionType
                        )

                )

            [forwardCompatibilityMap] =>
            [AdGroupCriterionType] => BiddableAdGroupCriterion
            [_parameterMap:AdGroupCriterion:private] => Array
                (
                    [AdGroupCriterion.Type] => AdGroupCriterionType
                )

        )


No where, it showed me the auto targets whereas there are Auto targets in
the Adgroup Id which I called this code for.

Can you please let me know if I am doing something wrong?

Thanks,
Shobha



On Thu, Nov 7, 2013 at 11:20 PM, Paul Matthews (AdWords API Team) <
adwordsapiadvisor+p...@google.com> wrote:

> Hi Shobha,
>
> To create / retrieve targets for dynamic search 
> ads<https://support.google.com/adwords/answer/2497706?hl=en>,
> you should use the Webpage 
> Criterion<https://developers.google.com/adwords/api/docs/reference/latest/SharedCriterionService.Webpage>from
>  the
> SharedCriterionService<https://developers.google.com/adwords/api/docs/reference/latest/SharedCriterionService>
>  or
> the 
> AdGroupCriterionSerivce<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupCriterionService>.
> You'd use the same service to retrieve them.
>
> If you use the 
> BiddableAdGroupCriterion<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupCriterionService.BiddableAdGroupCriterion>,
> then you can place Bidding amounts, including the
> biddingStrategyConfiguration<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupCriterionService.BiddableAdGroupCriterion#biddingStrategyConfiguration>
> .
>
> Regards,
>
> - Paul, AdWords API Team.
>
> On Thursday, 24 October 2013 12:10:54 UTC+1, shobha.p...@gmail.com wrote:
>>
>> Hi Danial,
>>
>> The Dynamic Search Ads are available as a separate type. But how can we
>> fetch the individual  'Auto Targets'  based on category, URL etc defined
>> under the Dynamic Search Campaigns. The Keyword Less Category and Query
>> reports don't seem to return the data.
>>
>> Also, we can set the bids at Adgroup level, but in our application we
>> want to set bids at individual Auto Target. The way we can set at keywords
>> level in Search Campaigns, how can that be done for indivicaul
>> category/auto target under Dynamic Search Ad Campaigns.
>>
>> Thanks,
>> Shobha
>>
>>
>> On Friday, October 11, 2013 8:32:33 PM UTC+5:30, Danial Klimkin wrote:
>>>
>>> Hello,
>>>
>>>
>>> DSA are available as an ad type:
>>>
>>>   https://developers.google.com/adwords/api/docs/reference/v201309/
>>> AdGroupAdService.DynamicSearchAd
>>>
>>> Bids can be retrieved and updated with the bidding configuration, see:
>>>
>>>   https://developers.google.com/adwords/api/docs/guides/bidding
>>>
>>>
>>> -Danial, AdWords API Team.
>>>
>>>
>>> On Wednesday, October 9, 2013 3:08:34 PM UTC+4, shobha.p...@gmail.comwrote:
>>>>
>>>> Hi Adwords API Team,
>>>>
>>>> We want to change the bids for Auto Targets under Dynamic Search
>>>> Campaigns using v201309. Can you please let us know the following:
>>>>
>>>> 1. How can the bids be retieved?
>>>> 2. How can we update the bids?
>>>>
>>>> Thanks,
>>>> Shobha
>>>>
>>>>  --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com
>
> http://groups.google.com/group/adwords-api
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to